为什么我不能使用2.5.2 springboot版本?

why I can't use the 2.5.2 springboot version?

我正在尝试使用 2.5.2 spring 版本的 Spring intializr 创建一个项目,但我遇到了这个问题

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.5.2 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.5.2/spring-boot-starter-parent-2.5.2.pom

但它适用于 2.4.8 版本,我正在使用 iteliJ idea 和 ubuntu 18.04,我也尝试使用 spring 工具套件,我尝试清理它但没有用.

您可以等到它再次运行,或者您可以获取并添加自己的 BOM。在 Maven 存储库中,您可以 'view files':

https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom

有关如何将 BOM 添加到项目的更多信息:

https://www.baeldung.com/spring-maven-bom