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

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

解决办法:  

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

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

 
  
//https 的镜像

<
mirror> <id>alimavenid> <name>aliyun mavenname> <mirrorOf>centralmirrorOf> <url>https://maven.aliyun.com/repository/publicurl> mirror>
//http 的镜像 <mirror> <id>alimavenid> <name>aliyun mavenname> <url>http://maven.aliyun.com/nexus/content/groups/public/url> <mirrorOf>centralmirrorOf> mirror>

 

你可能感兴趣的:(Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)