`

Maven插件:maven-antrun-plugin

 
阅读更多

antrun插件:http://maven.apache.org/plugins/maven-antrun-plugin/

ant任务列表:http://ant.apache.org/manual/tasksoverview.html

 

功能:运行ant任务。

 

示例:

<plugin>
	<artifactId>maven-antrun-plugin</artifactId>
	<version>1.7</version>
	<executions>
		<execution>
			<phase>compile</phase>
			<configuration>
				<target>
					<!--你可以把build.xml的任何配置或任务写在这里-->
					<echo message="project home:        ${basedir}" />
					<echo message="java home:           ${java.home}" />
					<echo message="java source version: ${java.version}" />
					<echo message="java target version: ${java.version}" />
					<echo message="java source charset: ${java.encoding}" />
				</target>
			</configuration>
			<goals>
				<goal>run</goal>
			</goals>
		</execution>
	</executions>
</plugin>

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics