Maven构建项目PKIX路径构建失败,无法找到到请求目标的有效证书路径

今天导入项目的时候,提示jar包没有,把报错信息贴出来
Failed to execute goal on project imook-security-core: Could not resolve dependencies for project com.imook.security:imook-security-core:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.springframework.cloud:spring-cloud-starter-oauth2:jar:1.2.1.RELEASE -> org.springframework.cloud:spring-cloud-starter-security:jar:1.2.1.RELEASE -> org.springframework.boot:spring-boot-starter-actuator:jar:1.5.6.RELEASE -> org.springframework.boot:spring-boot-actuator:jar:1.5.6.RELEASE -> com.fasterxml.jackson.core:jackson-databind:jar:2.8.9: Failed to read artifact descriptor for com.fasterxml.jackson.core:jackson-databind:jar:2.8.9: Could not transfer artifact com.fasterxml.jackson.core:jackson-databind:pom:2.8.9 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): Transfer failed for http://maven.aliyun.com/nexus/content/groups/public/com/fasterxml/jackson/core/jackson-databind/2.8.9/jackson-databind-2.8.9.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

导入一个教程的项目时报错,上网搜了很多答案,试试了都不对,看了下报错信息提示是没有有效的证书,因此应该把maven里的镜像的证书导入jdk,我这里使用的是阿里云,思路是这样的,亲测是可以解决的
具体步骤参考的下面这篇帖子
https://blog.csdn.net/weimenglala/article/details/104800011
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值