解决办法:
方法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。。。。