The solution to the problem of maven compilation report "unmappable characters encoding GBK"

        This morning, hudson builds the test version, which can be compiled perfectly locally. When it is sent to the build server, it will report " "Unmappable character encoding GBK"

I searched for information on the Internet and said to set the encoding, the settings are as follows, <encoding>UTF-8</encoding> is the key to solving the problem

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
   <version>2.3.2</version>
   <configuration>
     <source>1.6</source>
     <target>1.6</target>
     <encoding>UTF-8</encoding>
   </configuration>
</plugin>

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326823372&siteId=291194637