为了账号安全,请及时绑定邮箱和手机立即绑定

2.4节,运行mybatis-generator.xml时报错了,求大神!!

/ 猿问

2.4节,运行mybatis-generator.xml时报错了,求大神!!

weibo_慕圣4502198 2019-04-01 20:19:44

/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/apple/Desktop/javaworkspace/miaosha "-Dmaven.home=/private/var/folders/_8/xply1gfj0s9f00k_5zz4xykh0000gn/T/AppTranslocation/7526851F-2AB5-4606-87E8-E29347C09C1C/d/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/private/var/folders/_8/xply1gfj0s9f00k_5zz4xykh0000gn/T/AppTranslocation/7526851F-2AB5-4606-87E8-E29347C09C1C/d/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" "-javaagent:/private/var/folders/_8/xply1gfj0s9f00k_5zz4xykh0000gn/T/AppTranslocation/7526851F-2AB5-4606-87E8-E29347C09C1C/d/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50154:/private/var/folders/_8/xply1gfj0s9f00k_5zz4xykh0000gn/T/AppTranslocation/7526851F-2AB5-4606-87E8-E29347C09C1C/d/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/private/var/folders/_8/xply1gfj0s9f00k_5zz4xykh0000gn/T/AppTranslocation/7526851F-2AB5-4606-87E8-E29347C09C1C/d/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.3.5 mybatis-generator:generate

[INFO] Scanning for projects...

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building miaosha 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

[INFO] 

[INFO] --- mybatis-generator-maven-plugin:1.3.5:generate (default-cli) @ miaosha ---

[ERROR] XML Parser Error on line 3: 根元素类型 "generatorConfiguration" 的文档类型声明必须以 '>' 结尾。

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.951 s

[INFO] Finished at: 2019-04-01T20:11:54+08:00

[INFO] Final Memory: 21M/309M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: XML Parser Error on line 3: 根元素类型 "generatorConfiguration" 的文档类型声明必须以 '>' 结尾。 -> [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/MojoExecutionException


Process finished with exit code 1


查看完整描述

1 回答

?
HansonQ

你的配置文件中写的不规范吧

查看完整回答
反对 回复 2019-04-04

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信