在特定阶段后使用maven运行任务
maven eclipse之后如何运行任务:eclipse阶段在特定阶段后使用maven运行任务,maven,maven-plugin,Maven,Maven Plugin,maven eclipse之后如何运行任务:eclipse阶段 <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2</version> <executions> <execution> <phase>eclipse:ecli
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>eclipse:eclipse</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<executable>java</executable>
<mainClass>a.b.c.Main</mainClass>
</configuration>
</execution>
</executions>
org.codehaus.mojo
execmaven插件
1.2
日食:日食
JAVA
JAVA
a、 不列颠哥伦比亚省
此配置似乎不正常
maven eclipse之后如何运行任务:eclipse阶段
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>eclipse:eclipse</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<executable>java</executable>
<mainClass>a.b.c.Main</mainClass>
</configuration>
</execution>
</executions>
你不能,eclipse:eclipse
不是一个阶段
或者在同一阶段绑定一些目标(如果这有意义的话),它们将按照声明顺序执行
或者从命令行调用它们(并且可以选择提供从命令行运行时使用的默认配置)。例如,您可以执行以下操作:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>default-cli</phase>
<configuration>
<executable>java</executable>
<mainClass>a.b.c.Main</mainClass>
</configuration>
</execution>
</executions>
</plugin>