丛实用程序库的春季启动依赖性问题



看来spring-boot starter cluster-util使用的一个库已经开始崩溃。我收到了同样的未经授权的错误。我使用的是2.1版本的春季启动。正如我在回购中所看到的,最近几乎没有什么变化。似乎有人增加了对图书馆授权的要求。有人遇到过类似的问题吗?有没有其他方法可以直接包含依赖关系的jar?或者使用替代回购进行春季启动。我在这里使用gradle作为依赖项。

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'commerce-tagging-service'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not download plexus-utils-2.1.jar (org.codehaus.plexus:plexus-utils:2.1)
> Could not get resource 'https://repo.spring.io/plugins-release/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar'.
> Could not GET 'https://repo.spring.io/plugins-release/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar'. Received status code 401 from server: Unauthorized

弹簧引导的渐变依赖性


implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"

尝试将其应用于构建文件:

allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kategory/maven' }
}
}
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<url>http://repo1.maven.org/maven2</url>
</repository>```
Adding the central repos to your maven settings.xml , should work.

最新更新