为什么我从 repo spring 收到 HTTP 403?

why I have HTTP 403 from repo spring?

我有一个 jhipster 项目,几个月以来一直使用 gitlab 在 heroku 上部署

从昨天开始,我无法部署新版本,因为我有这个错误

FAILURE: Build failed with an exception.
32 * What went wrong:
33 A problem occurred configuring root project 'yvidya'.
34 > Could not resolve all artifacts for configuration ':classpath'.
35    > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
36      Required by:
37          project :
38       > Could not resolve io.spring.gradle:propdeps-plugin:0.0.10.RELEASE.
39          > Could not get resource 'http://repo.spring.io/plugins-    release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'.
40             > Could not GET 'http://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.10.RELEASE/propdeps-plugin-0.0.10.RELEASE.pom'. Received status code 403 from server:     Forbidden

有人知道为什么会出现这个错误吗?以及如何解决?

您得到的 HTTP Response Code403,这意味着 FORBIDDEN。请求通用存储库时出现此类错误的主要原因之一可能是某些国家/地区因某种制裁而受到限制。朝鲜、叙利亚、伊朗等国家。

如果是这种情况,我建议使用不在这些国家/地区的某种代理。然后重试。这次我认为您可以从 Spring 存储库中获取依赖项。

此问题与已弃用的存储库有关 link。请将 http 更新为 Spring 回购 URL 的 https

打开您的 build.gradle 文件并从 http 替换 spring maven 存储库 URL使用 https