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

你可能感兴趣的:(Maven构建项目PKIX路径构建失败,无法找到到请求目标的有效证书路径)