ANT = [A]nother [N]eat [T]ool
This plugin provides the ability to run Ant tasks from within Maven. You can even embed your Ant scripts in the POM
需要经常编写ant脚本,为此需要学习下ant的脚本。
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<phase>process-test-resources</phase>
<delete dir="${basedir}/src/java.test/spring/conf" />
<mkdir dir="${basedir}/src/java.test/spring/conf" />
<copy todir="${basedir}/src/java.test/spring/conf">
<fileset dir="${basedir}/target/conf/webroot/WEB-INF/bean/">
<move file="${basedir}/target/conf/java/sqlmap-config.xml"
tofile="${basedir}/src/java.test/spring/web.sqlmap-config.xml"