2011-03-12 172 views
4

如果我没有指定阶段插件将执行什么时候?maven插件执行

例如该插件

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

回答

6

这取决于插件。如果插件作者在mojo元数据中指定了@phase,它将在此处结束。如果没有,它将不会运行。