请稍等 ...
×

采纳答案成功!

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

mybatis-generator 生成失败,试了好几次都没有成功

错误提示:

E:\Java\jdk1.7.0_80\bin\java -Dmaven.home=E:\apache-maven-3.0.5 -Dclassworlds.conf=E:\apache-maven-3.0.5\bin\m2.conf -Didea.launcher.port=7532 "-Didea.launcher.bin.path=E:\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "E:\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;E:\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] Connecting to the Database
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.741s
[INFO] Finished at: Thu Nov 16 21:41:30 CST 2017
[INFO] Final Memory: 7M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: null,  message from server: "Host 'AUTOBVT-1S1IFG8' is not allowed to connect to this MySQL server" -> [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

https://img1.sycdn.imooc.com//szimg/5a0d9745000147c007380212.jpg


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

2回答

提问者 手写的从前24 2017-11-16 22:56:23

rebulid  reload试了没用  ,我也不知道这个 host是什么意思  



0 回复 有任何疑惑可以回复我~
Geely 2017-11-16 22:43:54

你好,同学你这个问题我还真是的一次碰到

不过看异常

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: null,  message from server: "Host 'AUTOBVT-1S1IFG8' is not allowed to connect to this MySQL server" -> [Help 1]



这个Host是什么?是你的机器名么?


你看看idea上边 build上rebuild一下整个project,然后maven上也reload update一下。

然后再看看


0 回复 有任何疑惑可以回复我~
  • 提问者 手写的从前24 #1
    还是不行  看上面图片
    回复 有任何疑惑可以回复我~ 2017-11-16 22:56:48
  • 提问者 手写的从前24 #2
    = =  坚持就是胜利  还是自己大意了  小问题
    回复 有任何疑惑可以回复我~ 2017-11-16 23:10:04
  • Geely 回复 提问者 手写的从前24 #3
    怎么解决的?什么问题?
    回复 有任何疑惑可以回复我~ 2017-11-17 15:15:42
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信