[ERROR] 17109 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

背景:
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包,全部清除,然后再重新下载)

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值