maven常用插件--maven-antrun-plugin
maven-antrun-plugin为maven提供了ant功能。它只有一个goal,即:
antrun:run 执行ant任务。
使用:
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.x</version>
该插件有两种方法执行ant任务:
1、可以直接在插件配置中编写
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <configuration> <target> <echo message="haha,i can do ant job within maven!"/> </target> </configuration> </plugin>
2、也可以调用ant脚本即build.xml文件执行
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <configuration> <target> <ant antfile="${basedir}/build.xml"/> </target> </configuration> </plugin>
ss
相关推荐
BitsPlayer 2020-05-29
roygbip 2020-02-16
BitsPlayer 2020-02-13
lrcoop 2020-02-03
chichichi0 2020-01-06
BitsPlayer 2019-12-19
BitsPlayer 2019-12-14
xueliangEmail 2013-07-22
cailianren 2010-04-15
wugang0 2019-11-09
lustdevil 2011-08-28
evilvoid 2008-04-17
leonranri 2019-11-05
leeccr 2019-10-31
evilvoid 2010-02-02