请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

mybatis-generator 生成失败

"C:\Program Files\Java\jdk1.8.0_131\bin\java" -Dmaven.home=C:\apache-maven-3.0.5 -Dclassworlds.conf=C:\apache-maven-3.0.5\bin\m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "C:\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.6 org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate

[INFO] Scanning for projects...

[WARNING] 

[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 264, column 15

[WARNING] 

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING] 

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING] 

[INFO]                                                                         

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

[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT

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

[INFO] 

[INFO] --- mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall ---

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 0.472s

[INFO] Finished at: Fri Sep 01 17:50:58 GMT+08:00 2017

[INFO] Final Memory: 5M/123M

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

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2 or one of its dependencies could not be resolved: Failure to find org.codehaus.plexus:plexus-interpolation:jar:1.1 in http://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 -> [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/PluginResolutionException


Process finished with exit code 1


正在回答 回答被采纳积分+3

1回答

Geely 2017-09-01 23:57:24

同学,你好。execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2 or one of its dependencies could not be resolved:

看起来这个是关键异常~~这里一定要注意~~貌似是这个包下载不全。

建议开手机热点,下载一下。

另外有一个是可否把具体的gen.xml这个文件配置发上来。还有课程中用的项目中tools下的mysql-bin.jar这个也要用上。

0 回复 有任何疑惑可以回复我~
  • 提问者 骑着猪找未来 #1
    这个一直成功不了,还是提示这样的错误,不知道该怎么解决了。
    回复 有任何疑惑可以回复我~ 2017-09-11 10:23:48
  • 提问者 骑着猪找未来 #2
    还有看文档里mysql-bin.jar放在tools下,但是视频以及自己创建的项目中都没有tools这个文件夹
    回复 有任何疑惑可以回复我~ 2017-09-11 10:45:09
  • Geely 回复 提问者 骑着猪找未来 #3
    视频中没有,不要紧,是因为已经用完了。自己创建的也没有,不要紧。
    总之你把那个bin.jar放到一个地方。然后在配置里改成这个mysql-bin.jar这个,而不是配置成maven下载下来的mysql驱动jar。
    
    然后继续试试,等你消息~~
    回复 有任何疑惑可以回复我~ 2017-09-11 23:02:30
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信