记录Jenkins自动部署时遇到的问题:Failed to execute goal on project exam

Jenkins整合maven项目,轮询git项目更新进行自动打包部署时,遇到以下问题:

在这里插入图片描述

[ERROR] Failed to execute goal on project exam: Could not resolve dependencies for project com.shuitou:exam:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.sun:tools:jar:1.8, com.sun:jconsole:jar:1.8: Could not find artifact com.sun:tools:jar:1.8 at specified path /root/.m2/repository/com/alibaba/druid/1.2.6/lib/openjdk-1.8-tools.jar -> [Help 1]
项目环境:jdk1.8
从字面上看是在指定目录下找不到jar包,然后找到对应的pom中的依赖
       <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>1.2.6</version>
        </dependency>

然后问题来了,可能是druid的版本问题影响,然后我换成之前的版本

       <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>1.1.22</version>
        </dependency>

然后再上传打包,正常!
在这里插入图片描述
在这里插入图片描述
特此记录一下!在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值