halo icon indicating copy to clipboard operation
halo copied to clipboard

最新 main 分支部分依赖无法下载

Open ruibaby opened this issue 1 year ago • 1 comments

系统信息

None

使用的哪种方式运行?

Docker

发生了什么?

在全新的 Codespace 环境执行 ./gradlew clean build,似乎有部分依赖无法正常下载:

@ruibaby ➜ /workspaces/halo (main) $ ./gradlew clean build
> Task :api:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:compileJava'.
> Could not resolve all files for configuration ':api:compileClasspath'.
   > Could not find org.springframework.boot:spring-boot-starter-actuator:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-data-jpa:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-mail:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-thymeleaf:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-webflux:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-validation:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-data-r2dbc:.
     Required by:
         project :api
   > Could not find org.springframework.session:spring-session-core:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-security:.
     Required by:
         project :api
   > Could not find org.springframework.security:spring-security-oauth2-jose:.
     Required by:
         project :api
   > Could not find org.springframework.security:spring-security-oauth2-client:.
     Required by:
         project :api
   > Could not find org.springframework.security:spring-security-oauth2-resource-server:.
     Required by:
         project :api
   > Could not find org.springframework.boot:spring-boot-starter-cache:.
     Required by:
         project :api
   > Could not find com.github.ben-manes.caffeine:caffeine:.
     Required by:
         project :api
   > Could not find net.bytebuddy:byte-buddy:.
     Required by:
         project :api
   > Could not find org.springframework.integration:spring-integration-core:.
     Required by:
         project :api
         project :api > project :platform:application
   > Could not find org.thymeleaf.extras:thymeleaf-extras-springsecurity6:.
     Required by:
         project :api
         project :api > project :platform:application
   > Could not resolve org.springframework.boot:spring-boot-dependencies:3.4.0-M3.
     Required by:
         project :api > project :platform:application
      > Could not resolve org.springframework.boot:spring-boot-dependencies:3.4.0-M3.
         > Could not parse POM https://repo.spring.io/milestone/org/springframework/boot/spring-boot-dependencies/3.4.0-M3/spring-boot-dependencies-3.4.0-M3.pom
            > Could not find org.springframework.data:spring-data-bom:2024.1.0-M1.

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 6s
16 actionable tasks: 5 executed, 11 up-to-date

plugin-starter 也一样:

@ruibaby ➜ /workspaces/plugin-starter (main) $ ./gradlew clean build
Starting a Gradle Daemon, 1 busy and 1 incompatible Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':jar'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve run.halo.tools.platform:plugin:2.20.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve run.halo.tools.platform:plugin:2.20.0-SNAPSHOT.
         > Could not parse POM https://s01.oss.sonatype.org/content/repositories/snapshots/run/halo/tools/platform/plugin/2.20.0-SNAPSHOT/plugin-2.20.0-20241016.100600-8.pom
            > Could not resolve run.halo.tools.platform:application:2.20.0-SNAPSHOT.
               > Could not resolve run.halo.tools.platform:application:2.20.0-SNAPSHOT.
                  > Could not parse POM https://s01.oss.sonatype.org/content/repositories/snapshots/run/halo/tools/platform/application/2.20.0-SNAPSHOT/application-2.20.0-20241016.100600-8.pom
                     > Could not resolve org.springframework.boot:spring-boot-dependencies:3.4.0-M3.
                        > Could not resolve org.springframework.boot:spring-boot-dependencies:3.4.0-M3.
                           > Could not parse POM https://repo.spring.io/milestone/org/springframework/boot/spring-boot-dependencies/3.4.0-M3/spring-boot-dependencies-3.4.0-M3.pom
                              > Could not find org.springframework.data:spring-data-bom:2024.1.0-M1.
                                Searched in the following locations:
                                  - https://repo.maven.apache.org/maven2/org/springframework/data/spring-data-bom/2024.1.0-M1/spring-data-bom-2024.1.0-M1.pom
                                  - https://s01.oss.sonatype.org/content/repositories/releases/org/springframework/data/spring-data-bom/2024.1.0-M1/spring-data-bom-2024.1.0-M1.pom
                                  - https://s01.oss.sonatype.org/content/repositories/snapshots/org/springframework/data/spring-data-bom/2024.1.0-M1/spring-data-bom-2024.1.0-M1.pom
                                  - https://repo.spring.io/milestone/org/springframework/data/spring-data-bom/2024.1.0-M1/spring-data-bom-2024.1.0-M1.pom

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.9/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1m 41s

复现步骤

No response

相关日志输出

No response

附加信息

No response

ruibaby avatar Oct 20 '24 10:10 ruibaby

从 https://repo.spring.io/ui/native/milestone/org/springframework/data/spring-data-bom/ 看,版本 2024.1.0-M1 似乎已经被删除了,同时发布了新的 RC1。目前尚不清楚为什么会删除,最好是等待 Spring Boot 发布3.4.0-RC1(See https://github.com/spring-projects/spring-boot/milestone/352 for more)。

JohnNiang avatar Oct 20 '24 11:10 JohnNiang

/retitle Cannot build with Spring Boot 3.4.0-M3

Closes due to https://github.com/spring-projects/spring-data-bom/issues/234 resolved.

/close

JohnNiang avatar Oct 21 '24 07:10 JohnNiang

@JohnNiang: Closing this issue.

In response to this:

/retitle Cannot build with Spring Boot 3.4.0-M3

Closes due to https://github.com/spring-projects/spring-data-bom/issues/234 resolved.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

f2c-ci-robot[bot] avatar Oct 21 '24 07:10 f2c-ci-robot[bot]