微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ERROR XML Parser Error on line 11 注释中不允许出现字符串 --

1、错误描述

 

F:\workspaces\Mybatis>mvn mybatis-generator:generate
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mybatis 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ Mybatis
 ---
[ERROR] XML Parser Error on line 11: 注释中不允许出现字符串 "--"。
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.046 s
[INFO] Finished at: 2016-03-03T23:19:52+08:00
[INFO] Final Memory: 6M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plu
gin:1.3.2:generate (default-cli) on project Mybatis: XML Parser Error on line 11
: 注释中不允许出现字符串 "--"。 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors,re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

F:\workspaces\Mybatis>

2、错误原因

 

      generatorConfig.xml中出现<!-- -->注释,报错

 

3、解决办法

     去掉generatorConfig.xml中的<!-- -->注释

分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。