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。。。。

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值