[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven01-model 0.0.1SHAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ maven01-model ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\code\maven01\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ maven01-model ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\code\maven01\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[5,36] 编码GBK的不可映射字符
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[1,1] 需要class, interface或enum
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[5,24] 未结束的字符串文字
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.758 s
[INFO] Finished at: 2017-09-04T23:20:56+08:00
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project maven01-model: Compilation failure: Compilation failure:
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[5,36] 编码GBK的不可映射字符
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[1,1] 需要class, interface或enum
[ERROR] /C:/code/maven01/src/main/java/com/oecoo/maven01/model/HelloWorld.java:[5,24] 未结束的字符串文字
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException