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

bnl4lu3b  于 2021-08-20  发布在  Java
关注(0)|答案(1)|浏览(412)

我正在尝试使用SpringInitializer创建一个项目,使用2.5.2Spring版本,但我面临这个问题

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和Ubuntu18.04,我用的是spring工具套件,我用的是clean,但没用。

eh57zj3b

eh57zj3b1#

您可以等到它再次工作,或者您可以获取并添加自己的bom表。在maven存储库上,您可以“查看文件”:
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

相关问题