Maven插件执行 [英] maven plugin execution
本文介绍了Maven插件执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我不指定阶段,插件何时会执行?
When will plugin execute if I don't specify a phase?
例如该插件
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<configuration>
<!-- if you don't specify any modules, the plugin will find them -->
<!-- <modules> <module>learning.vaadin.gwt.ColorPickerWidgetSet</module> </modules> -->
</configuration>
<goals>
<goal>update-widgetset</goal>
</goals>
</execution>
</executions>
</plugin>
推荐答案
这取决于插件.如果插件作者在mojo元数据中指定了@phase
,它将结束于此.如果没有,它将根本无法运行.
It depends on the plugin. If the plugin author specified an @phase
in the mojo metadata, it will end up there. If not, it won't run at all.
这篇关于Maven插件执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文