解决idea Could not transfer artifact org.springframework.bootspring-b

报错代码
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE from/to alimaven (https://maven.aliyun.com/repository/central): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

解决方案1:

原因:证书问题
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

在这里插入图片描述

添加的内容

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

解决方安2:修改镜像地址
由于默认是外国的,可能导致下载问题 ----> 设置国内镜像网站

路径

在这里插入图片描述
在这里添加(我已经添加过了,默认是没有的)

在这里插入图片描述

提供一个阿里云的地址

 <mirror>
		<id>nexus-aliyun</id>
		<mirrorOf>central</mirrorOf>
		<name>Nexus aliyun</name>
		<url>https://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

其他方法:
做到这里,我的问题已经解决了,如果这里你还是没有解决且你是第一次使用maven做项目,那么极有可能是你的maven出了问题,方法就是删除重新配(不要想着改他),我之前的3.6.0和3.6.3都不知道出了什么问题,目前的版本是3.5.2

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值