Maven工程build时几个Warning的处理
1、[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
pom.xml添加:
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
2、
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
将pom.xml中maven-war-plugin版本由2.1.1改为2.3:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
</plugin>