Failure to transfer--springCloud和SpringBoot之一踩坑记录

解决办法:

方法1:直接搜索jar.lastUpdate然后删除,再mavenUpdate

在这里插入图片描述
方法2:maven仓库中打开cmd命令行输入:for /r %i in (*.lastUpdated) do del %i;然后再mavenUpdate
方法3:再Maven的setting.xml文件中修改mirro

<mirror>
        <id>nexus-aliyun</id>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>
</mirror>

错误实例:

在头文件里面的出错,截取的一部分提示信息:
**

resolution will not be reattempted until the update interval of central has elapsed or updates are forced.

**
翻译:在超过中心的更新间隔或强制更新之前,不会重新尝试解析。
就是说有jar包了,不能更新

在这里插入图片描述
那么问题来了,既然有了不更新,用原来的就完事了,为什么还报错。
解决办法: 1.找到错误的jar包位置,删除
2.将对应的项目update,即可

在这里插入图片描述

在这里插入图片描述

错误描述:
Failure to transfer org.springframework:spring-expression:jar:4.3.13.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.springframework:spring-expression:jar:4.3.13.RELEASE from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.springframework:spring-expression:jar:4.3.13.RELEASE from https://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or
updates are forced. Original error: Could not transfer artifact org.springframework:spring-expression:jar:4.3.13.RELEASE from/to central (https://
repo.maven.apache.org/maven2): The operation was cancelled.

来自以上代码的错误提示:org.springframework:spring-expression:jar:4.3.13.RELEASE
在这里插入图片描述
等待下载:
又出Failure to transfer。。。。

还有问题,也是按照前面的操作做

发布了18 篇原创文章 · 获赞 11 · 访问量 1214

猜你喜欢

转载自blog.csdn.net/konmor/article/details/101048377
今日推荐