对于Maven构建,我需要在用war插件制作爆炸目录后复制一些文件。战争期间/之后是否可以运行antrun插件:爆炸的目标是什么?如果是的话,我会如何做到这一点?我试过了:在战争中运行antrun:爆炸
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>war</phase>
<goals>
<goal>exploded</goal>
</goals>
<configuration>
<tasks>
<echo>Running ant task...</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
和其他几个变化,但似乎无法让它运行。
Idealy如果我做了一场全面的战争,我希望蚂蚁的任务能够运行:战争也是如此,但当我来到这个战场时,我会穿过这座桥。