spring boot starter使用的一个库plexus-util似乎已经开始崩溃了。我收到了同样的未经授权的错误。我使用的是spring boot版本2.1。据我所知,repo中几乎没有最近的更改。似乎有人增加了对图书馆的授权要求。有没有人遇到过类似的问题?有没有像直接包含依赖jar这样的替代方法呢?或者使用另一种回收站来代替spring boot。我在这里使用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: Unauthorizedspring boot的Gradle依赖
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"发布于 2020-11-25 16:57:20
尝试将此应用于构建文件:
allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kategory/maven' }
}
}发布于 2020-11-25 17:05:10
<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.https://stackoverflow.com/questions/65001242
复制相似问题