真正解决Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom

解决新建springboot项目时包导不进来的问题

发现问题

  • 新建一个springboot项目
  • 此时maven的setting配置文件配置的阿里云的源
  • 发现很多包导不进来,于是reimport,没有效果
  • 于是执行clean命令
  • 报错

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

  • 进入报错的网站查找springbootRELEASE2.2.4的包(https://maven.aliyun.com/repository/central)
    在这里插入图片描述
  • 发现阿里云还没有2.2.4的包,于是将springboot的版本改成2.1.7
  • 147
    点赞
  • 355
    收藏
    觉得还不错? 一键收藏
  • 75
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 75
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值