在maven构建项目时,如何打印正在运行的哪个阶段?假设我运行mvn install,那么我看到的是:
[INFO] --- jacoco-maven-plugin:0.8.3:prepare-agent (default-prepare-agent) @ site-order-parent ---
[INFO] argLine set to -javaagent:/Users/xxx/.m2/repository/org/jacoco/org.jacoco.agent/0.8.3/org.jacoco.agent-0.8.3-runtime.jar=destfile=/Users/xxx/Cdk/site-order/target/jacoco.exec
[INFO]
[INFO] >>> maven-source-plugin:2.4:jar (attach-sources) > generate-sources @ site-order-parent >>>
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:prepare-agent (default-prepare-agent) @ site-order-parent ---
[INFO] argLine set to -javaagent:/Users/xxx/.m2/repository/org/jacoco/org.jacoco.agent/0.8.3/org.jacoco.agent-0.8.3-runtime.jar=destfile=/Users/xxx/Cdk/site-order/target/jacoco.exec
[INFO]
[INFO] <<< maven-source-plugin:2.4:jar (attach-sources) < generate-sources @ site-order-parent <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:2.4:jar (attach-sources) @ site-order-parent ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.3:report (default-report) @ site-order-parent ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ site-order-parent ---
我们看到的格式为<plugin_name> : version : goal (execution Id) @ artifact name
,但是我需要查看发生这种情况时生命周期的哪个阶段处于活动状态?
答案 0 :(得分:0)
我在评论中得到了完整的答案。因此,我将其合并并代表他们发布。
正如@khmarbaise所说,当前在maven 3中是不可能的。
但是有些东西可能会有所帮助-@ {spi评论的buildplan-maven-plugin。