请稍等 ...
×

采纳答案成功!

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

双击mybatis-generator:generator

"C:\Program Files\Java\jdk1.7.0_80\bin\java" -Dmaven.home=C:\windows_apache-maven-3.0.5-bin\apache-maven-3.0.5 -Dclassworlds.conf=C:\windows_apache-maven-3.0.5-bin\apache-maven-3.0.5\bin\m2.conf -Didea.launcher.port=7535 "-Didea.launcher.bin.path=D:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "C:\windows_apache-maven-3.0.5-bin\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;D:\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: 1.477s

[INFO] Finished at: Fri Oct 27 13:32:16 CST 2017

[INFO] Final Memory: 6M/154M

[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: Cannot resolve classpath entry: ${db.driverLocation} -> [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/PluginExecutionException


Process finished with exit code 1


正在回答

1回答

根据你的错误代码来看是找不到你数据库的jdbc驱动文件,检查你项目中的 datasource.properties 文件中的 db.driverLocation 的地址是否指向你的 jdbc 驱动文件。注意这个地址必须指向你的驱动文件,而不是驱动文件的文件夹

0 回复 有任何疑惑可以回复我~
  • 提问者 疯狂的小绵羊 #1
    我的DataSource是db.driverLocation=C:/Users/gaohan/IdeaProjects/jar/mysql-connector-java-5.1.6我的jdbc的驱动文件路径是C:\Users\gaohan\IdeaProjects\jar 我不知道是哪里出了问题
    回复 有任何疑惑可以回复我~ 2017-10-27 20:21:01
  • 提问者 疯狂的小绵羊 #2
    我已经解决了  谢谢你 原因是我报名尾缀忘记了
    回复 有任何疑惑可以回复我~ 2017-10-27 22:33:09
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信