首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

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

2013-10-21 
maven编译报“编码 GBK 的不可映射字符”问题的解决? ? ? ? 今早上hudson构建测试版本,本地可以完美编译,传

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>

?

热点排行