spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.72k stars 5.86k forks source link

No permission to download dependencies from repo.spring.io when building documentation #13451

Closed KevinBlandy closed 1 year ago

KevinBlandy commented 1 year ago

I tried to build the documentation via ./gradlew :spring-security-docs:antora, but the following exception occurred.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'spring-security'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download spring-javaformat-formatter-shaded-0.0.35.jar (io.spring.javaformat:spring-javaformat-formatter-shaded:0.0.35)
      > Could not get resource 'https://repo.spring.io/plugins-snapshot/io/spring/javaformat/spring-javaformat-formatter-shaded/0.0.35/spring-javaformat-formatter-shaded-0.0.35.jar'.
         > Could not GET 'https://repo.spring.io/plugins-snapshot/io/spring/javaformat/spring-javaformat-formatter-shaded/0.0.35/spring-javaformat-formatter-shaded-0.0.35.jar'. Received status code 401 from server:

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

It looks as if the visitor does not have permission to download the dependency from repo.spring.io.

Any suggestions? Thanks!

marcusdacoregio commented 1 year ago

Hi @KevinBlandy, those repositories now need authentication as per https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023.

I have removed them here, can you try it again?