mybatis generator failure

来源:5-10 mybatis三剑客之mybatis-generator生成数据对象和时间戳优化

alex

2018-09-03

[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.400 s

[INFO] Finished at: 2018-09-04T01:20:04+10:00

[INFO] Final Memory: 10M/309M

[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: /Users/imooc/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:


写回答

1回答

ChrisNotMe

2018-09-04

 /Users/imooc/mysql-connector-java-5.1.6-bin.jar 这个是老师的地址,你要写的是自己本地jar包的地址。找到你自己的mysql jar包地址,例如我的就是c:/Users/mrj/.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar。一般来说都是放在这里的

0
0

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

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

9496 学习 · 8820 问题

查看课程