读书人

maven编译报“编码 GBK 的不可映射字符

发布时间: 2013-10-21 17:00:48 作者: rapoo

maven编译报“编码 GBK 的不可映射字符”问题的解决

? ? ? ? 今早上hudson构建测试版本,本地可以完美编译,传到构建服务器上就报““编码 GBK 的不可映射字符”

上网搜了资料说要设置编码,设置如下,<encoding>UTF-8</encoding>为解决问题关键

<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>

?

读书人网 >软件开发

热点推荐