maven编译带中文的工程时出现syntax error的问题
来源:互联网 发布:倩丽口红知乎 编辑:程序博客网 时间:2024/05/19 18:11
在编译带中文的maven工程时,尽管pom文件中设置了<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>,但仍然会报错,如下信息:
[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
通过clean install -X命令执行编译查看详细报错信息,发现其中有一行这样的错误:
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
后面我终于发现了是因为文件中存在某些中文字符导致编译打包出错,只要将这些中文换成其他的中文即可通过编译。不过还不清楚为什么有的中文编译不过去,知道的大神指点下,谢谢
- maven编译带中文的工程时出现syntax error的问题
- DirectShow Filter 编译时遇到的问题 ---- error MIDL2025 : syntax error : expecting ]... || error C2504: 'IReferenceClockTimerControl' :
- 关于编译源码时出现Syntax error: "(" unexpected的解决方式
- maven编译打包时出现的问题
- eclipse导入maven工程出现的问题
- Syntax error on token ")", invalid MemberExpression(用el时出现的问题)
- VC中使用wxWidgets 出现的编译错误 error C2059: syntax error : 'constant' 解决
- VS中使用CXTPDockingPane出现的编译错误 error C2059: syntax error : 'constant' 解决
- 关于C++程序编译出现error C2143: syntax error : missing ';' before 'type'的解决办法
- 初次使用cocosIDE 新建工程出现The file contains a syntax error 的解决方案
- Centos 7编译Android工程出现 error while loading shared libraries: libz.so.1 的问题
- 安装phpbb3论坛中文语言包 出现的-bash: syntax error near unexpected token `('错误
- mingw 编译 libgpg-error 时候 出现ld.exe: .libs/libgpg-error-0.dll.def:8: syntax error的解决方案
- MTK工程在ARM环境下编译出现的error
- 解决安装3dMax时出现Command line option syntax error.Type Command /?for Help.的问题
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
- ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法
- 最详细安卓ADT插件安装教程
- jQuery学习总结四 --- 功能性表格的开发
- PopupWindow
- PowerBuilder数据窗口对象(转)
- MSP430--时钟模块
- maven编译带中文的工程时出现syntax error的问题
- JAVA学习篇--JAVA的两种编程模式对比
- HDU2098 分拆素数和
- RFID学习(七)ID卡
- 我要上CSDN。。。。。。
- 【笔记】移动大趋势2014
- Ubuntu12.04Openstack部署(单节点、单网卡)
- 经纬财富:漯河白银投资判断趋势的方法
- ios tableview 如何隐藏空数据行