我正在开发一个基于 gradle 的 Spring Boot 项目,该项目从“repo.spring.io”下载一些依赖项。该应用程序过去可以正常工作,但现在我在下载依赖项阶段看到错误。
当应用程序继续下载https://repo.spring.io/libs-milestone/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar时,我收到 HTTP 响应错误代码 401(未经授权)。
我不确定 repo.spring.io 端最近是否有一些变化,因为这曾经在我的应用程序上工作过,没有任何问题。
这是我得到参考的确切错误-
What went wrong:
19:44:19 A problem occurred configuring project ':account_settings-service'.
19:44:19 > Could not resolve all files for configuration ':account_settings-service:classpath'.
19:44:19 > Could not download commons-logging.jar (commons-logging:commons-logging:1.1.3)
19:44:19 > Could not get resource 'https://repo.spring.io/libs-milestone/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar'.
19:44:19 > Could not HEAD 'https://repo.spring.io/libs-milestone/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar'. Received status code 401 from server: Unauthorized
如果有人对此有任何想法或观察到类似问题,请提供帮助。
提前致谢!