IDEA unable to find valid certification path to requested target。PKIX path building failed

柔光的暖阳◎ 2023-03-14 08:05 32阅读 0赞

转自: https://www.cnblogs.com/shwang/p/12090894.html


1 报错

  1. Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to alimaven (https://maven.aliyun.com/repository/central):
  2. sun.security.validator.ValidatorException:
  3. PKIX path building failed:
  4. sun.security.provider.certpath.SunCertPathBuilderException:
  5. unable to find valid certification path to requested target

2 解决

添加参数
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
在这里插入图片描述
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,32人围观)

还没有评论,来说两句吧...

相关阅读