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

Idea下 Maven生成mybatis-generator:gererate 时出错。

Idea下 Maven生成mybatis-generator:gererate 时出错。

乱了节奏 2017-05-12 08:32:31
"C:\Program Files\Java\jdk1.7.0_80\bin\java" "-Dmaven.home=D:\Program Files\apache-maven-3.0.5" "-Dclassworlds.conf=D:\Program Files\apache-maven-3.0.5\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\Program Files\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;D:\Program Files\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: 1.512s[INFO] Finished at: Fri May 12 08:23:03 CST 2017[INFO] Final Memory: 7M/110M[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 'root'@'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/MojoExecutionExceptionProcess finished with exit code 1
查看完整描述

1 回答

已采纳
?
Caballarii

TA贡献1123条经验 获得超629个赞

用户名密码没配置

查看完整回答
反对 回复 2017-05-12
  • 乱了节奏
    乱了节奏
    mysql的用户名和密码是配置了的 db.driverLocation=C:/Users/Administrator/IdeaProjects/mysql-connector-java-5.1.6-bin.jar db.driverClassName=com.mysql.jdbc.Driver db.url=jdbc:mysql://127.0.0.1:3306/mmall?characterEncoding=utf-8 db.username=root db.password=yhldatabse.
  • Caballarii
    Caballarii
    这只是你的properties文件,xml里面jdbcConnection怎么设置的
  • 乱了节奏
    乱了节奏
    谢谢你,原来我MYSQL数据库密码写错了,非常感谢
  • 1 回答
  • 0 关注
  • 5036 浏览

添加回答

举报

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