Maven加载依赖失败:Failure to transfer org.springframework.cloud:spring-cloud-starter-bootstrap:pom

报错

Failure to transfer org.springframework.cloud:spring-cloud-starter-bootstrap:pom:3.1.3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

提示该文件已经被缓存在本地存储库中 ,但是无法加载,猜想可能是下载中断了导致有缓存但是没下载下来。

解决方案

clean再install一下

打开IDEA中的Terminal,输入:
 

mvn clean install -U

执行完毕后刷新一下Maven依赖,问题解决。

  • 13
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
maven项目中导入SpringBoot或创建SpringBoot项目时,出现 "Failure to find org.springframework.boot:spring-boot-starter-parent:pom:2.7.15.RELEASE" 的错误提示。这个错误通常是由于找不到对应的父级依赖导致的。 根据引用的错误提示信息中的 "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",这可能是由于缺少有效的证书路径导致的。这个问题可能与使用的maven仓库有关,可能需要添加或更新证书配置。 另外,引用中提到了一个类似的问题,其中也提到了可能与maven版本和IDE(IntelliJ IDEA 2020)兼容性有关。然而,即使更改了maven版本,问题仍然存在,并且 "maven home directory" 的更改也无效。这可能需要进一步排查和检查项目配置以确定问题的根本原因。 综上所述,请先确保使用的maven仓库配置正确,并且拥有有效的证书路径。如果问题仍然存在,请检查maven版本和IDE的兼容性,并确保项目配置正确。如果问题仍无法解决,可能需要进一步查看日志或尝试其他解决办法。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [报错: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom](https://blog.csdn.net/muzi_87/article/details/130216813)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [创建SpringBoot项目报错:Project ‘org.springframework.boot:spring-boot-starter-parent:2.7.0‘ not ...](https://blog.csdn.net/zhoulv163/article/details/125367809)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值