1) 依赖
2)默认的classpath
http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html
- maven.compile.classpath
- maven.runtime.classpath
- maven.test.classpath
- maven.plugin.classpath
3)示例
<target name="slice2java"> <mkdir dir="${project.basedir}\target\generated"/> <taskdef name="slice2java" classname="Slice2JavaTask" classpathref="maven.compile.classpath" /> <slice2java outputdir="${project.basedir}\target\generated"> <fileset dir="${project.basedir}\src\main\resources\slice" includes="*.ice"/> </slice2java> </target>
标签:compile,示例,plugin,classpath,maven,antrun From: https://www.cnblogs.com/zno2/p/7640598.html