首页 > 其他 > 详细

unable to find valid certification path to requested target

时间:2020-06-13 21:46:38      阅读:75      评论:0      收藏:0      [点我收藏+]

错误

  今天对一个项目执行mvn clean install,报错unable to find valid certification path to requested target 。

Could not transfer artifact org.springframework:spring-web:pom:5.0.7.RELEASE from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/):

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target

 

分析:

  从提示中看此错误是是缺少网站证书,本机jdk中 没有对应证书,网上有许多方法是下载证书,我试了一下没有解决,

后面找到一种方案是忽略证书,问题解决,所以记录一下供大家参考!

 

解决:

  找到 File -> Settings  -> Build, Execution, Deployment  ->Build Tools  ->Maven  ->Importing

在vm options 中 填上 

-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true

 

如下图: 完美解决

技术分享图片

 

unable to find valid certification path to requested target

原文:https://www.cnblogs.com/azoveh/p/13121770.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!