Syntax error occurs during Maven compilation of projects with Chinese characters.

Source: Internet
Author: User
Tags stack trace wso2

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] 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] For more information about the errors and possible solutions, please read the following articles:
[Error] [help 1]

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!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.