コマンドラインから ID で maven-exec-plugin (または他のプラグイン) の実行を呼び出すことは可能ですか?
私の pom.xml ファイルが次のようになっているとしましょう:
<project>
[...]
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>foo</id>
<goals>
<goal>exec</goal>
</goals>
<phase></phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>foo</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>bar</id>
<goals>
<goal>exec</goal>
</goals>
<phase></phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>bar</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
[...]
</project>
今、電話することは可能ですか
mvn exec:exec
実行「foo」を実行するための魔法を追加しましたか?
好奇心旺盛な方のために、ここで利用可能なプロファイルを使用した代替ソリューションがあります: http://www.mail-archive.com/user@mojo.codehaus.org/msg00151.html