Java plexus utils库的spring启动依赖性问题
似乎spring boot starter plexus util使用的一个库已经开始崩溃。我得到未经授权的错误相同。我使用的是spring boot 2.1版。正如我在回购中所看到的,最近几乎没有什么变化。似乎有人对图书馆增加了授权要求。有没有人遇到过类似的问题?有没有其他方法,比如直接将jar包含在依赖项中?或者为spring boot使用替代回购。 我在这里使用gradle作为依赖项Java plexus utils库的spring启动依赖性问题,java,spring-boot,gradle,Java,Spring Boot,Gradle,似乎spring boot starter plexus util使用的一个库已经开始崩溃。我得到未经授权的错误相同。我使用的是spring boot 2.1版。正如我在回购中所看到的,最近几乎没有什么变化。似乎有人对图书馆增加了授权要求。有没有人遇到过类似的问题?有没有其他方法,比如直接将jar包含在依赖项中?或者为spring boot使用替代回购。 我在这里使用gradle作为依赖项 FAILURE: Build failed with an exception. * What went
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
spring引导的Gradle依赖
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
尝试将此应用于生成文件:
allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kategory/maven' }
}
}
真的
真的
中心的
http://repo1.maven.org/maven2
```
将中央回购添加到maven settings.xml应该可以工作。
您不应该使用Spring存储库来解决这些依赖关系。这些回购协议的政策已经改变,请参见。因此,请使用常规的maven central等。
<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.