maven去掉“Using platform encoding (GBK actually) to copy filtered resources”
在install maven项目的时候如果有:
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
提示,这说明你没有指定编码,只能按照平台的默认编码进行拷贝。如果原来编码使用的是UTF-8进行保存,而这里拷贝用GBK肯定会出现乱码的。所以要改成自己的编码保存的方式。
添加:
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
添加后:
Using 'UTF-8' encoding to copy filtered resources.
会出现如上的提示。
org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver
In the mean time the workaround is to set the maven-jar-plugin version to 2.3.2.