当前位置: 代码迷 >> Ruby/Rails >> MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.
  详细解决方案

MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.

热度:366   发布时间:2016-04-29 02:11:50.0
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!

附:此时Maven工程配置如下:

1、工程属性,编码设置为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>


效果:问题解决。

  相关解决方案