背景:
maven项目,使用“逆向工程”
遇见的问题:
[ERROR] 17109
[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]
解决办法:
将maven中的setting.xml的仓库路径换一个成新的,将项目进行update,重新生成jar包
排查范围:
(1)排查是否在pom.xml 中引入
<!-- MBG插件 -->
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.5</version>
</dependency>
<!-- 逆向工程生成的插件 -->
<build>
<plugins>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.42</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
(2)查看generatorConfig.xml中连接的数据库名和数据库用户名、密码是否正确
(3)可能maven本地仓库下载的依赖jar包有残缺(就是我遇见的问题),需要指定新的仓库位置,重新下载(或者 将本地仓库中的jar包,全部清除,然后再重新下载)