mybatis-generator配置-build failure-DAO层等没有文件生成

来源:5-9 mybatis三剑客之mybatis-generator配置

zero就是我

2018-04-18

http://img.mukewang.com/szimg/5ad6e5a50001edce13660768.jpg

"C:\Program Files (x86)\Java\jdk1.8.0_161\bin\java" -Dmaven.home=E:\apache-maven-3.0.5 -Dclassworlds.conf=E:\apache-maven-3.0.5\bin\m2.conf -javaagent:E:\ideaIU-2017.3.5.win\lib\idea_rt.jar=53884:E:\ideaIU-2017.3.5.win\bin -Dfile.encoding=UTF-8 -classpath E:\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar org.codehaus.classworlds.Launcher -Didea.version=2017.3.5 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: 3.199s

[INFO] Finished at: Wed Apr 18 14:21:17 CST 2018

[INFO] Final Memory: 6M/15M

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

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Access denied for user 'mmall'@'localhost' (using password: YES) -> [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



写回答

2回答

Geely

2018-04-22

嗯,账号密码按一定要正确哈,那个红线忽略就好,没关系不影响 亲爱的同学

0
0

zero就是我

提问者

2018-04-18

//img.mukewang.com/szimg/5ad6f123000199c705460463.jpg


发现是没改成自己mysql的账户和密码,改了就build success了

db.username=root
db.password=123456


但是这个图红色波浪线部分什么原因???????

0
0

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程