首页 > 其他 > 详细

Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

时间:2020-06-16 21:23:13      阅读:53      评论:0      收藏:0      [点我收藏+]

  这种问题提示的是本地的SSL证书检查过期, 一般重下载一个JDK.

解决办法:  

  1.使用手机wifi 热点进行下载, 有的电信网络或者联通网络屏蔽了maven 网站了

  2.更新maven的镜像: 在maven 安装目录里面的conf 文件夹, setting.xml 文件里面更新镜像:


//https 的镜像

<
mirror> <id>alimaven</id> <name>aliyun maven</name> <mirrorOf>central</mirrorOf> <!-- 阿里云公共代理库使用指南:https://help.aliyun.com/document_detail/102512.html?spm=a2c40.aliyun_maven_repo.0.0.36183054oSYFKS --> <!-- <url>https://maven.aliyun.com/nexus/content/groups/public</url> --> <url>https://maven.aliyun.com/repository/public</url> </mirror>
//http 的镜像 <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>

 

Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

原文:https://www.cnblogs.com/yysbolg/p/13144624.html

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