【发布时间】:2014-06-11 22:08:16
【问题描述】:
我在我的 pom 文件中指定了一个 maven antrun 任务,它的工作是在编译阶段将一些文件从一个地方复制到另一个地方。但是 ant 无法识别 eclipse.home 变量?...我尝试使用其他变量,但我只是运行空白? maven-antrun-plugin 有哪些变量??
我的插件:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<copy
todir="${eclipse.home}/workspace/location/src/main/webapp/realtime">
<fileset
dir="${eclipse.home}/workspace/location/src/main/webapp/realtime" />
</copy>
<copy
todir="${eclipse.home}/workspace/location/src/main/webapp/reports">
<fileset
dir="${eclipse.home}/workspace/location/src/main/webapp/reports" />
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
谢谢
【问题讨论】: