请稍等 ...
×

采纳答案成功!

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

急!maven中mybatis-generator不成功,错误信息如下

感觉图中的项目都配置正确了,什么用户名路径应该没错吧,但是试了好多,最后出现的错误是下面粘贴的文字,请问是什么问题?

图片描述“C:\Program Files\Java\jdk1.8.0_191\bin\java.exe” -Dmaven.multiModuleProjectDirectory=D:\Java\leonchai\leonchai “-Dmaven.home=D:\IntelliJ IDEA 2019.1.1\plugins\maven\lib\maven3” “-Dclassworlds.conf=D:\IntelliJ IDEA 2019.1.1\plugins\maven\lib\maven3\bin\m2.conf” “-javaagent:D:\IntelliJ IDEA 2019.1.1\lib\idea_rt.jar=54513:D:\IntelliJ IDEA 2019.1.1\bin” -Dfile.encoding=UTF-8 -classpath “D:\IntelliJ IDEA 2019.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar” org.codehaus.classworlds.Launcher -Didea.version2019.1.1 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 21
[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: 0.697 s
[INFO] Finished at: 2019-05-02T22:17:01+08:00
[INFO] Final Memory: 9M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Client does not support authentication protocol requested by server; consider upgrading MySQL client -> [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

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

1回答

geelylucky 2019-05-03 00:42:01

Client does not support authentication protocol requested by server; consider upgrading MySQL client

是你的jar和你的mysql服务版本不匹配哦,软件最好保持和老师的版本一致。否则容易出现不可预知的问题。

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信