报错

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

蕾蕾是小仙女儿丫

2019-12-16

db.driverLocation=D:\soft\apache-maven-3.6.0-bin\apache-maven-3.6.0\repository\mysql\mysql-connector-java\5.1.6\mysql-connector-java-5.1.6.jar
db.driverClassName=com.mysql.jdbc.Driver
db.url=jdbv:mysql://192.168.137.207:3306/mmall?characterEncoding=utf-8
db.username=mmall
db.password=147258
报错如下

[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] -----------------------------< com:mmall >------------------------------
[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] — mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.549 s
[INFO] Finished at: 2019-12-16T11:37:15+08:00
[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: D:softapache-maven-3.6.0-binapache-maven-3.6.0
[ERROR] epositorymysqlmysql-connector-java5.1.6mysql-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

Process finished with exit code 1

图片描述

是和\r \5 有关系么 如果不是 是错哪里了? 如何更改?

写回答

2回答

geelylucky

2019-12-16

同学,你看Cannot resolve classpath entry: D:softapache-maven-3.6.0-binapache-maven-3.6.0

这个报错说路径有问题。需要把它改正确。

0
1
慕娘7010603
这个怎么改呀
2020-02-10
共1条回复

慕娘7010603

2020-02-10

我和你一样的错误,这部分怎么改的呀,感觉路径没错啊


0
1
weixin_慕仰6461391
http://www.luyixian.cn/news_show_8957.aspx
2020-04-16
共1条回复

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

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

9489 学习 · 8818 问题

查看课程