Mycat1.6 uses Maven to package character encoding problem solutions

1. Error code

[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] Error: Unmappable character encoding UTF-8

 

[ERROR] -> [Help 1]

 

 

2. Error solution:

Modify the java\io\mycat\config\ Versions.template file and remove the garbled comments

 

Maven skip test case trick, add

<plugin>

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

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

        <configuration>

          <skip>true</skip>

        </configuration>

      </plugin>

 

3. Result verification



 

Guess you like

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