1. 程式人生 > >MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....

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

XML tracking pom.xml文件 pos bsp cli -a ati Coding

環境: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.....