项目中对于web项目 经常需要经 一些resource下的文件,打包时,移动到WEB-INF下。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<targetPath>WEB-INF</targetPath>
<directory>src/main/resources-${package.target}</directory>
<includes>
<include>
log4j.properties
</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>