jenkins 打包 [ERROR] Failed to execute goal on project clue: Could not resolve dependencies for projec

err:pom里面jar包版本升级,Jenkins打包过程中找不到c3p0 jar包

[ERROR] Failed to execute goal on project clue: Could not resolve dependencies for project cn.**:**:war:0.0.1-SNAPSHOT: Could not find artifact c3p0:c3p0:jar:0.9.5.4 in central (http://******/nexus/content/groups/public) -> [Help 1]

 

解决:pom  jar包升级,例如:c3p0.jar  

0.9.1.1版本写法是这样

<dependency>
    <groupId>c3p0</groupId>
    <artifactId>c3p0</artifactId>
    <version>0.9.1.1</version>
</dependency>

0.9.2.2版本之后写法是这样

 <dependency>
       <groupId>com.mchange</groupId>
       <artifactId>c3p0</artifactId>
       <version>0.9.5.4</version>
</dependency>

jar包版本升级原来养成的习惯只是升级version,有些jar在升级过程有会修改groupId。这次真tm长教训了,粗心大意浪费时间

问题解决说明地址:https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

这个地址其实已经明确告诉了:配置的存储库需要身份验证,并且Maven无法向服务器提供正确的凭据。在这种情况下,请确保您${user.home}/.m2/settings.xml包含一个<server>声明,该声明<id><id>要使用的远程存储库的匹配

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值