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>
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>
相关文章推荐
- 给UILabel 或者 UIButton标题加下划线
- 从客户端(XXX)中检测到有潜在危险的Request.Form 值
- UI手势
- 设计模式--Builder
- UIViewController 中的loadView 调用时机
- iOS中UITableViewCell的重用问题解决方案
- Git GUI的使用
- Git Gui for Windows的建库、克隆(clone)、上传(push)、下载(pull)、合并
- 为什么说GUI是单线程化的
- SQL 使用openquery进行跨库操作
- 【Andorid学习笔记】常见的UI布局
- androidstu导入项目一直卡在Building gradle project info位置
- 102. Unique Paths II
- Arduino 开源纸盒超声波测距仪
- PHP 一维关联数组,根据value大小…
- JS网页关键词标红(实例为FTL+jque…
- easyui tree 多级节点的的某个节点的所有子节点id查询
- UITextView添加默认文本
- Android属性之build.prop生成过程分析
- IOS-- UIView中的坐标转换