大牛?无他,唯手熟尔!

Maven之failed to transfer from XXX during a previous attempt解决

摘要:今天升级了下maven版本,有个项目pom文件报错了:org.apache.maven.shared:maven-shared-components:pom:34 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt......怎么整,直接上菜!

本文由草根java提供,转载请注明出处https://www.caogenjava.com/detail/134.html

今天升级了下maven版本,有个项目pom文件报错了:

org.apache.maven.shared:maven-shared-components:pom:34 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.shared:maven-shared-components:pom:34 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

怎么整,直接上菜!

根据错误提示所指出的路径,比如上面说的maven-shared-components,从本地仓库中找到他,然后版本号提示的是34,把34这个文件夹删掉,然后maven->Update Projects一下。

Screenshot_6.png

处理完这个之后,可能还会报其他的组件错误,比如笔者处理完之后又报了一个org.codehaus.plexus:plexus-utils:pom:3.3.1,同理根据上面的方法依次解决一下。

双11云服务器热购推广(腾讯云):2核+4G内存+3M带宽=688元/3年(仅限新用户)

除非注明,文章均为草根java原创,转载请注明本文地址: https://www.caogenjava.com/detail/134.html

上一篇:代理软件导致本地hosts文件修改后不生效        下一篇:调整IntelliJ IDEA 的缓存位置
网友评论,共0 发表评论
昵称:
评论:
验证码: 刷新验证码
双11云服务器热购
    购买建议:带宽不用太高了,1M就够用,多考虑内存。