Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.4.3错误详解

在这里插入图片描述
今天在构建springcloud微服务的时候,导入相关依赖,发现pom.xml报错了,报错信息如下:

Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.4.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. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.3 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.3/spring-boot-starter-parent-2.4.3.pom

根据这条错误,我在StackOverflow上找到了答案,作者是这样说的:
在这里插入图片描述
对应的操作为:
在这里插入图片描述
与此同时,还有一个问题,idea提示Project 'org.springframework.boot:spring-boot-starter-parent:2.4.3' not found未找到。
在这里插入图片描述
在网上找到一个回答,说可以降低版本,然后再试试,发现果然成功了。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41486775/article/details/114334818