【作用】ant的maven插件,将ant的强大功能也都引入到maven中,弥补maven不够灵活的缺点
<plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <delete file="${project.build.directory}/a.properties" /> </tasks> </configuration> </execution> </executions> </plugin> |