首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >plexus-utils库的spring boot依赖性问题

plexus-utils库的spring boot依赖性问题
EN

Stack Overflow用户
提问于 2020-11-25 16:47:50
回答 2查看 187关注 0票数 0

spring boot starter使用的一个库plexus-util似乎已经开始崩溃了。我收到了同样的未经授权的错误。我使用的是spring boot版本2.1。据我所知,repo中几乎没有最近的更改。似乎有人增加了对图书馆的授权要求。有没有人遇到过类似的问题?有没有像直接包含依赖jar这样的替代方法呢?或者使用另一种回收站来代替spring boot。我在这里使用gradle作为依赖项。

代码语言:javascript
复制
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 boot的Gradle依赖

代码语言:javascript
复制
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-11-25 16:57:20

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

代码语言:javascript
复制
allprojects {
    repositories {
        jcenter()
        maven { url 'https://dl.bintray.com/kategory/maven' }
    }
}
票数 1
EN

Stack Overflow用户

发布于 2020-11-25 17:05:10

代码语言:javascript
复制
                <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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65001242

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档