Warning: selected war files include a WEB-INF/web.xml which will be ignored
解决方案:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<!-- http://maven.apache.org/plugins/maven-war-plugin/ -->
<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
</configuration>
</plugin>
</plugins>
Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
解决方案:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>