MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....
Posted llguanli
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....相关的知识,希望对你有一定的参考价值。
环境:Maven3.2.5+MyEclipse 2015CI
现象:在Maven编译过程中出现错误信息:Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
附:此时Mavenproject配置例如以下:
1、project属性,编码设置为UTF-8:
2、pom.xml属性
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
解决方式:
在pom.xml文件里增加配置:
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
效果:问题解决。
以上是关于MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....的主要内容,如果未能解决你的问题,请参考以下文章
ERROR StatusLogger No log4j2 configuration file found. Using default configuration
1064 - syntax error, error in :'Id`) USING BTREE
maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources