Maven Ant任务没有复制任何内容
我在部署阶段执行了这个Ant任务 Maven的输出表示Ant插件已经运行,但它什么也没做。即使是最重要的事情也没有完成Maven Ant任务没有复制任何内容,maven,Maven,我在部署阶段执行了这个Ant任务 Maven的输出表示Ant插件已经运行,但它什么也没做。即使是最重要的事情也没有完成 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>deploy</phase>
<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>
你需要升级你的antrun插件。我建议设置
3.0.0
谢谢!!它正在工作。
--- maven-deploy-plugin:2.7:deploy (default-deploy) @ zploger ---
Skipping artifact deployment
--- maven-antrun-plugin:1.3:run (default) @ zploger ---
Executing tasks
Executed tasks