Maven antrun plugin 学习:
<configuration>
http://ant.apache.org/manual/tasksoverview.html
--想要target命令都有例子,点击进去可看。
<configuration>
<target> 下可以直接写ant脚本。
如:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<target>
<copy file="src/main/webapp/WEB-INF/service-web.xml" todir="../${web-app}/src/main/webapp/WEB-INF/" overwrite="true"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
http://ant.apache.org/manual/tasksoverview.html
--想要target命令都有例子,点击进去可看。