问题描述
我正在尝试使用 Spring intializr 创建一个使用 2.5.2 spring 版本的项目,但我遇到了这个问题
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 存储库中,您可以“查看文件”:
有关如何向项目添加 BOM 的更多信息: