Maven を ant と統合する方法は、次のように maven-antrun-plugin を使用するだけです。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>package</id>
<phase>package</phase>
<configuration>
<tasks>
<ant antfile="build.xml" target="package" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
プロジェクトの pom.xml ファイルで
ただし、カスタム パッケージとライフサイクルを定義する maven プラグインの一部として、関連する build.xml スクリプトを実行構成と共に使用できるようにしたいと考えています。
それを行う方法はありますか?