自己电脑搭建个人demo的时候,一直出现:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.9.RELEASE from/to nexus-aliyun (https://maven.aliyun.com/repository/central):: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

由于之前有修改过hosts,还原后也尝试了各种办法,都没有结果

后经无数搜索:在settings-build-maven-runner添加如下参数即可:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

IDEA maven 阿里云镜像下载依赖出现证书验证问题

 

 

相关文章:

  • 2022-01-15
  • 2021-10-03
  • 2022-12-23
  • 2021-12-25
  • 2021-09-20
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-25
  • 2022-01-18
  • 2021-12-28
  • 2022-12-23
  • 2021-12-12
  • 2021-05-22
  • 2022-01-30
相关资源
相似解决方案