When compiling a Maven project with Chinese characters, even though the <project. Build. sourceencoding> UTF-8 </Project. Build. sourceencoding> is set in the POM file, an error is still reported, as follows:
[Error] failed to execute goal Org. apache. FELIX: Maven-SCR-plugin: 1.7.2: SCR (generate-SCR-scrdescriptor) on Project toolkit. monitor. MANAGER: Execution generate-SCR-scrdescriptor of Goal Org. apache. FELIX: Maven-SCR-plugin: 1.7.2: SCR failed: syntax error @ [193,1] In File:/E:/wso2-svn/toolkit. monitor. manager/src/main/Java/COM/shuhao/TOOLKIT/monitor/manager/warnhandler. java-> [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/PluginExecutionException
Run the "clean install-X" command to run the compilation command to view the detailed error information. One of the lines is found to be the same:
Caused by: COM. thoughtworks. qdox. parser. parseexception:Syntax Error@ [193,1] In File:/E:/wso2-svn/TOOLKIT. Monitor. Manager/src/main/Java/COM/shuhao/TOOLKIT/monitor/manager/warnhandler. Java
Later I found out that some Chinese characters in the file caused compilation and packaging errors,You only need to replace these Chinese characters with other Chinese characters.. But I still don't know why some Chinese language compilation won't pass. Thank you!