今天在构建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上找到了答案,作者是这样说的:
对应的操作为: