您的位置:首页 > 产品设计 > UI/UE

Maven工程build时几个Warning的处理

2016-05-31 15:24 344 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: