我在部署阶段执行了这个Ant任务。
Maven的输出表明Ant插件已经运行,但它什么也没做。甚至没有完成。
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>deploy</phase>
<configuration>
<target name="Pushing to builds repository">
<copy todir="${basedir}/builds/" verbose="true">
<fileset dir="target/">
<include name="**/*.jar"/> <!--${project.exe_finalname}.jar-->
</fileset>
</copy>
<echo>from target/ to ${basedir}/builds/</echo>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
maven的输出是:
--- maven-deploy-plugin:2.7:deploy (default-deploy) @ zploger ---
Skipping artifact deployment
--- maven-antrun-plugin:1.3:run (default) @ zploger ---
Executing tasks
Executed tasks
您需要升级您的antrun插件。我建议设置<version>3.0.0</version>
。