当前位置: 首页 > 知识库问答 >
问题:

找不到org . spring framework . boot:spring-boot-starter-parent:2 . 4 . 9 . release

家西岭
2023-03-14

我试图将应用程序spring boot版本升级到2.4.9.RELEASE,但当我编译应用程序代码时,显示如下错误:

> Configure project :dolphin-acientbay
/home/runner/work/retire/retire
> Configure project :dolphin-post
/home/runner/work/retire/retire
> Configure project :dolphin-template
/home/runner/work/retire/retire
> Task :dolphin-common:generateLombokConfig

FAILURE: Build failed with an exception.

> Task :dolphin-common:compileJava FAILED
* What went wrong:
Execution failed for task ':dolphin-common:compileJava'.
> Could not resolve all files for configuration ':dolphin-common:compileClasspath'.
2 actionable tasks: 2 executed
   > Could not find org.springframework.boot:spring-boot-starter-parent:2.4.9.RELEASE.
     Required by:
         project :dolphin-common

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 47s
Error: Process completed with exit code 1.

我发现repo包含了jar文件:https://repo 1 . maven . org/maven 2/org/spring framework/boot/spring-boot-starter-parent/2 . 4 . 9/。我应该如何解决这个问题?

共有1个答案

段干跃
2023-03-14

将 Spring Boot Gradle 插件调整为:

id "org.springframework.boot" version "2.4.9"

并去掉版本号的< code>RELEASE,只保留编号版本。

 类似资料: