解决 Maven was cached in the local repository, resolution will not be reattempted until the update int

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 Maven was cached in the local repository, resolution will not be reattempted until the update int相关的知识,希望对你有一定的参考价值。

问题原因

Maven默认会使用本地缓存的库来编译工程,对于上次下载失败的库,maven会在~/.m2/repository/<group>/<artifact>/<version>/目录下创建xxx.lastUpdated文件,一旦这个文件存在,那么在直到下一次nexus更新之前都不会更新这个依赖库。

解决办法:

删除vvv~/.m2/repository/<group>/<artifact>/<version>/目录下的*.lastUpdated文件,然后再次运行mvn compile编译工程。

以上是关于解决 Maven was cached in the local repository, resolution will not be reattempted until the update int的主要内容,如果未能解决你的问题,请参考以下文章

maven编译报错 was cached in the local repository 拉包失败

maven编译报错 was cached in the local repository 拉包失败

study06:关于maven仓库的问题 was cached in the local repository,

MAVEN奇葩问题was cached in the local repository, resolution will not be reattempted until

was cached in the local repository, resolution will not be reattempted until the update interval of

TipsVue项目报错:This dependency was not found:* regenerator-runtime/runtime.js in ./node_modules/cache(代