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

解决办法:

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

Failure to transfer--springCloud和SpringBoot之一踩坑记录_第1张图片
方法2:maven仓库中打开cmd命令行输入:for /r %i in (*.lastUpdated) do del %i;然后再mavenUpdate
方法3:再Maven的setting.xml文件中修改mirro


        nexus-aliyun
        Nexus aliyun
        http://maven.aliyun.com/nexus/content/groups/public/
        central

错误实例:

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

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

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

Failure to transfer--springCloud和SpringBoot之一踩坑记录_第2张图片
那么问题来了,既然有了不更新,用原来的就完事了,为什么还报错。
解决办法: 1.找到错误的jar包位置,删除
2.将对应的项目update,即可

Failure to transfer--springCloud和SpringBoot之一踩坑记录_第3张图片

Failure to transfer--springCloud和SpringBoot之一踩坑记录_第4张图片

错误描述:
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--springCloud和SpringBoot之一踩坑记录_第5张图片
等待下载:
又出Failure to transfer。。。。

Failure to transfer--springCloud和SpringBoot之一踩坑记录_第6张图片

你可能感兴趣的:(踩坑)