[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor

Posted shengulong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor相关的知识,希望对你有一定的参考价值。

一、背景

  最近的项目在用maven 进行install的时候,发现老师在控制台输出警告:[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!虽然并不影响项目的正常运行和install,但是对于处女座的我来说一点都不想看到这警告的发生。所以就研究了一下,找到解决办法,现在分享给大家。

二、解决方式

在maven项目的pom.xml中添加如下配置

1 <properties>
2     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3 </properties>

保存后我们再运行,发现之前的警告不见了,内心爽的要飞起来~

说明:如果我们当前maven项目是别的项目的子项目,只需要在父项目中加入该配置即可,子项目就可以继承了。

以上是关于[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor的主要内容,如果未能解决你的问题,请参考以下文章

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor

maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is

Using platform encoding GBK actually to copy filtered reso

警告:Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform depende

Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources