<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<ant antfile="build.xml">
<target name="package.njrf" />
</ant>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
转载于:https://my.oschina.net/u/261246/blog/272642