maven plugin execution

倖福魔咒の 提交于 2019-12-23 12:34:07

问题


When will plugin execute if I don't specify a phase?

for example that plugin

<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>

回答1:


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.



来源:https://stackoverflow.com/questions/5285684/maven-plugin-execution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!