maven编译时遇“编码GBK 的不可映射字符”

解决办法:

   1: <plugin>

   2: <groupId>org.apache.maven.plugins</groupId>

   3: <artifactId>maven-compiler-plugin</artifactId>

   4: <version>2.0.2</version>

   5: <configuration>

   6:     <source>1.6</source>

   7:     <target>1.6</target>

   8:    
<encoding>UTF-8</encoding>

   9: </configuration>

  10: </plugin>

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.