Mycat1.6使用Maven打包字符编码问题解决方案

1、错误代码

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project Mycat-server: Compilation failure

[ERROR] \Documents and Settings\Administrator\My Documents\Mycat-Server-1.6\src\main\java\io\mycat\config\Versions.java:[34,11] 错误: 编码UTF-8的不可映射字符

[ERROR] -> [Help 1]

2、错误解决方案:

修改java\io\mycat\config\Versions.template 文件,去掉出现乱码的注释即可

Maven跳过测试用例技巧,增加

<plugin>

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

        <artifactId>maven-surefire-plugin</artifactId>

        <configuration>

          <skip>true</skip>

        </configuration>

      </plugin>

3、结果验证



 

猜你喜欢

转载自gaojingsong.iteye.com/blog/2337931