maven系列-插件-antrun
maven通过antrun插件,使用ant完成部分项目构建功能
事例通过在标签中指定task,执行copy-jar和clean-build构建逻辑
本人测试场景:原有ant构建项目迁移到maven项目时,过渡时使用;在ant中实现了构建管理功能:“本地classpath文件中jar的复制”和“源代码使用aspectj切面编译”
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>ant-build</id>
<phase>compile</phase>
<configuration>
<tasks>
<ant antfile="./build.xml" target="copy-jar" />
<ant antfile="./build.xml" target="clean-build" />
</tasks>
</configuration>
<goals>
<goal