老师,我在进行mybatis的逆向工程的时候报了这个错怎么办
来源:5-10 mybatis三剑客之mybatis-generator生成数据对象和时间戳优化

poisonSky
2018-06-08
D:\JDK\bin\java.exe -Dmaven.multiModuleProjectDirectory=E:\mmall "-Dmaven.home=D:\IntelliJ IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=D:\IntelliJ IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:D:\IntelliJ IDEA\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=51920:D:\IntelliJ IDEA\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath "D:\IntelliJ IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.1.1 -s D:\Maven\apache-maven-3.5.3\conf\settings.xml org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate -f pom.xml
[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: 0.472 s
[INFO] Finished at: 2018-06-08T09:32:22+08:00
[INFO] Final Memory: 8M/155M
[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: E:mmallsrclibsmysql-connector-java-5.1.6.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
2回答
-
Geely
2018-06-17
Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Cannot resolve classpath entry: E:mmallsrclibsmysql-connector-java-5.1.6.jar -> [Help 1]
嗨~你好~亲爱的同学~ 看报错是这个没配置好,我看你的路径没配置好。例如是e:\mmall\src 这样的,
另外可以使用项目里tools文件夹下的mysql-bin-jar包配置好即可。
【新加入的同学,以为内容请务必仔细阅读,给同学们整理的学习课程的集锦宝典,帮助大家更高效的完成一期课程】 部署环境的话 ,建议看下文章最后一小段哟~首先跟着课程阿里云部署那个章节过一遍,可以先不跟着操作,做到心里有数,环境部署都做了什么。 http://coding.imooc.com/lesson/96.html#mid=3861 课程项目思维导图及线上环境、测试环境、部署linux和windows等解答 http://www.imooc.com/article/20193 课程项目思维导图及线上环境、测试环境、部署linux和windows等解答 http://www.imooc.com/article/20193 【重点】问答区常见问题整理 http://www.imooc.com/article/18998 课程项目群分享手记 http://www.imooc.com/article/19094 找工作的季节之简历及找工作的分享 http://www.imooc.com/article/19998 项目环境、vsftpd、linux、mysql等各种配置、软件下载 http://learning.happymmall.com mybatis-plugin插件安装 http://coding.imooc.com/learn/questiondetail/36007.html 【二期进阶Tomcat集群和Redis分布式课程已经上线】 http://coding.imooc.com/class/162.html 【最后祝同学,学完能感觉自己有提高,有收获,同学的支持也是我最大的动力!】
00 -
polo哦
2018-06-09
pom换成我的
<!-- mybatis逆向工程关键 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
<overwrite>false</overwrite>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
</dependency>
</dependencies>
</plugin>
00
相似问题