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版本写法是这样


    c3p0
    c3p0
    0.9.1.1

0.9.2.2版本之后写法是这样

 
       com.mchange
       c3p0
       0.9.5.4

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

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

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

 

 

 

你可能感兴趣的:(Jenkins,maven,maven,jar)