3
我用我的POM的一个插件,看起来像这样:如何判断一个插件将运行在哪个阶段?
<plugin>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<!-- check for the latest version -->
<version>1.27</version>
<executions>
<execution>
<goals>
<goal>docs</goal>
</goals>
<configuration>
<docsDir>${project.build.directory}/docs</docsDir>
</configuration>
</execution>
</executions>
</plugin>
我想知道,如果我跑package
将这个插件运行还是在site
还是其他什么东西?有没有一种简单的方法通过查看此通知,或做我必须要么
- 通过试验和错误
阅读插件文档
这取决于我们在哪里配置它在''或''。如果它在'中配置'将在构建过程中执行。 –
@ Rp-这不够具体,我问的是它会运行在哪个阶段。http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html我相信你告诉我哪个**生命周期**它在运行,我在问哪个阶段。至少,这是我对词汇的理解。 –