<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>web
//在打包的時候,要將<directory></directory>中的文件所有搬到<targetPath></targetPath>apache
目錄中去,而且這個過程是覆蓋的.maven
<directory>deploy/${env}/image</directory>
<targetPath>statics/themes/default/images</targetPath>get
//指定了在這個」搬運」過程當中,須要進行過濾io
<filtering>true</filtering>
</resource>
<resource>
<directory>deploy/${env}/fastdfs</directory>
<targetPath>WEB-INF/classes/fastdfs</targetPath>
</resource>
</webResources>
</configuration>
</plugin>ast