我尝试将app spring boot版本升级到2.4.9.RELEASE,但当我编译app代码时,显示如下错误:
> 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.我发现存储库包含jar文件:https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.9/。我应该怎么做才能解决这个问题?
发布于 2021-11-21 10:19:43
调整spring boot gradle插件以:
id "org.springframework.boot" version "2.4.9"去掉版本号的RELEASE,只保留版本号。
https://stackoverflow.com/questions/70053506
复制相似问题