maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is
Posted 拓荒牛
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is相关的知识,希望对你有一定的参考价值。
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[警告]使用时平台编码格式(GBK actually)进行解析的文件资源,也就是说,构建是依赖于平台的!
错误原因:一些源文件的编码格式并不是工具平台的默认的解析格式,二者有冲突,所以报错
解决方法:在maven工程中的父工程POM中加入以下代码“
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
再次安装时就不会报错。
以上是关于maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is的主要内容,如果未能解决你的问题,请参考以下文章
Maven install [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor
Warning: Using a password on the command line inte
maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources