<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy todir="src/main/webapp" overwrite="true" >
<fileset dir="../${project.parent.artifactId}/static/${profiles.activation}/" erroronmissingdir="false" />
</copy>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
本文详细介绍了如何使用Maven的Antrun插件进行项目清理阶段的资源复制任务,具体展示了如何配置插件以实现从指定目录复制文件到项目的webapp目录下,并确保覆盖原有文件。
3889

被折叠的 条评论
为什么被折叠?



