【发布时间】:2016-02-01 06:55:30
【问题描述】:
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 文件中
但是,我希望能够将关联的 build.xml 脚本与执行配置一起作为定义自定义打包和生命周期的 maven 插件的一部分。
有没有办法做到这一点?
【问题讨论】:
标签: maven ant maven-antrun-plugin