【问题标题】:maven plugin executionmaven插件执行
【发布时间】:2011-03-12 21:40:44
【问题描述】:

如果我不指定阶段,插件什么时候执行?

例如那个插件

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

【问题讨论】:

    标签: maven-2 maven-plugin


    【解决方案1】:

    这取决于插件。如果插件作者在 mojo 元数据中指定了 @phase,它将最终出现在那里。如果没有,它根本不会运行。

    【讨论】:

      猜你喜欢
      • 2018-10-17
      • 2011-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-27
      • 1970-01-01
      • 2011-04-16
      相关资源
      最近更新 更多