请稍等 ...
×

采纳答案成功!

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

generator

F:\JDK\bin\java -Dmaven.multiModuleProjectDirectory=H:\mmall -Dmaven.home=D:\apache-maven-3.3.9 -Dclassworlds.conf=D:\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7532 "-Didea.launcher.bin.path=D:\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "D:\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\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 265, 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: 4.556 s

[INFO] Finished at: 2017-09-24T15:42:30+08:00

[INFO] Final Memory: 8M/112M

[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: /H:/mysql-connector-java-5.1.6-bin.jar -> [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

https://img1.sycdn.imooc.com/szimg//59c763040001fe1a07430288.jpg

https://img1.sycdn.imooc.com/szimg//59c763050001c40408200673.jpg


正在回答

4回答

Geely 2017-09-24 16:21:16

Cannot resolve classpath entry: /H:/mysql-connector-java-5.1.6-bin.jar -> [Help 1]


改成

H:/mysql-connector-java-5.1.6-bin.jar


不要前面的/

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉3622820 #1
    改了还是这个错误?
    回复 有任何疑惑可以回复我~ 2017-09-24 16:37:20
  • Geely 回复 提问者 慕粉3622820 #2
    那你在h盘上有这个文件么?
    回复 有任何疑惑可以回复我~ 2017-09-24 20:07:40
  • Geely 回复 提问者 慕粉3622820 #3
    把最新的配置及日志发一下
    回复 有任何疑惑可以回复我~ 2017-09-24 20:07:53
提问者 慕粉3622820 2017-09-24 20:28:32

F:\JDK\bin\java -Dmaven.multiModuleProjectDirectory=H:\mmall -Dmaven.home=D:\apache-maven-3.3.9 -Dclassworlds.conf=D:\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\IntelliJ IDEA 15.0.6\bin" -Dfile.encoding=UTF-8 -classpath "D:\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\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 265, 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: 2.234 s

[INFO] Finished at: 2017-09-24T20:24:44+08:00

[INFO] Final Memory: 8M/112M

[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: H:/mysql-connector-java-5.1.6-bin.jar -> [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

https://img1.sycdn.imooc.com/szimg//59c7a4ca00014f2103000334.jpg

有的,开始就不知道为什么是红色的

1 回复 有任何疑惑可以回复我~
  • Geely #1
    Cannot resolve classpath entry: H:/mysql-connector-java-5.1.6-bin.jar -> [Help 1]
    
    你把我的电脑打开,我要看看你的H盘目录的东西。
    回复 有任何疑惑可以回复我~ 2017-09-24 22:13:15
  • Geely #2
    然后发截图上来。
    回复 有任何疑惑可以回复我~ 2017-09-24 22:13:26
  • Leroyy #3
    这个红色是没有提交git把
    回复 有任何疑惑可以回复我~ 2017-11-09 23:46:12
Geely 2017-11-11 13:36:36

你的h盘也没有那个文件呢。。copy到h盘根目录啊

0 回复 有任何疑惑可以回复我~
提问者 慕粉3622820 2017-09-24 22:36:35

https://img1.sycdn.imooc.com/szimg//59c7c2840001bc3207100280.jpg

https://img1.sycdn.imooc.com/szimg//59c7c28e0001ff9b06100292.jpg

这是H盘还项目的目录

0 回复 有任何疑惑可以回复我~
  • Geely #1
    H:/mysql-connector-java-5.1.6-bin.jar 
    你配置的路径是错的啊
    你不是放在了H:/mmall下面吗?
    回复 有任何疑惑可以回复我~ 2017-09-25 22:46:26
  • 提问者 慕粉3622820 回复 Geely #2
    我之前一直是配在安装的目录下的,可也不行,我改过来后也不行,然后我换了一个文件似乎可以了,可是我mysql登录不了,1130,我就是本地登录的呀,我在网上找了很多方法都不行,老师你有什么方法吗
    回复 有任何疑惑可以回复我~ 2017-09-26 11:33:32
  • Geely #3
    所以你的路径不应该是h:/mysql 而是h:/mmall/mysql....jar
    回复 有任何疑惑可以回复我~ 2017-09-26 22:30:27
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信