【问题标题】:why I can't use the 2.5.2 springboot version?为什么我不能使用2.5.2的springboot版本?
【发布时间】:2021-09-20 04:29:37
【问题描述】:

我正在尝试使用 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 工具套件,我尝试清理它但没有用。

【问题讨论】:

  • 稍后再试。
  • 看起来是网络问题:Transfer failed for https://r...

标签: java spring-boot maven pom.xml


【解决方案1】:

您可以等到它再次工作,或者您可以获取并添加您自己的 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-09-30
    • 2013-07-08
    • 2021-12-20
    相关资源
    最近更新 更多