可能原因是maven私服找不到相关jar。

我们可以到http://mvnrepository.com中找到相应的jar,上传到私服即可。

然后到本地仓库中找到相应的文件夹路径,删除相关文件夹后,再执行maven命令。

下面是其他网友的补充:

方法二、

今天使用命令mvn compile编译maven项目时提示错误信息,部分错误信息如下:
...... was cached in the local repository, resolution will not be reattempted until the update interval of nexus ......

发现proxool-0.9.1.jar下载到本地时失败,从提示可知是本地仓库的缓存(cached)造成,于是我删除目录C:\Users\Administrator\.m2\repository\proxool\proxool\0.9.1后重新下载(即执行mvn compile命令)即可成功!
注意你要确定远程仓库中存在此jar(proxool-0.9.1.jar)包

方法三、

问题描述

在使用公司内部的maven仓库编译项目时,由于新加入了几个依赖包,第一次编译失败了,此后在修复了公司内部maven仓库后编译项目出现错误

was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
问题原因

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

解决办法:

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

另外也有说可以修改~/.m2/settings.xml文件,将其中的仓库添加

复制代码

代码如下:

<updatePolicy>always</updatePolicy>

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

  1. cached in the local repository, resolution will not be reattempted until the update interval of RIIL

    maven更新项目的时候,在还没有下载完成就终止了,第二次从本地导入项目的时候,pom文件报错,提示说是cached in the local repository, resolution will ...

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

    使用maven构建项目时,报如上错误. 原因 Maven默认会使用本地缓存的库来编译工程,对于上次下载失败的库,maven会在本地仓库包对应的目录下创建xxx.lastUpdated文件,一旦这个文件 ...

  3. Maven was cached in the local repository, resolution will not be reattempted until the update interv

    问题描述 在使用公司内部的maven仓库编译项目时,由于新加入了几个依赖包,第一次编译失败了,此后在修复了公司内部maven仓库后编译项目出现错误 was cached in the local re ...

  4. git 报错:was cached in the local repository, resolution will not be reattempted until the upda

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. Could not resolve dependencies for project com.for ...

  5. Maven经典错误之三:was cached in the local repository, resolution will not be reattempted until the upda

    常见错误: Multiple annotations found at this line: - No plugin found for prefix 'war' in the current pro ...

  6. 解决 Maven 报错 Non-resolvable parent POM ... was cached in the local repository, resolution will not be

    解决 Maven 报错 Non-resolvable parent POM ... was cached in the local repository, resolution will not be ...

  7. Failure to find com.rongpd:rpd:pom:1.0 in xxx was cached in the local repository, resolution will no

    2019独角兽企业重金招聘Python工程师标准>>> 搞 maven install 模块的时候报错: Failure to find com.rongpd:rpd:pom:1.0 ...

  8. 排查maven中可以从远程下载下来jar包,但是却报错Failure to find was cached in the local repository, resolution will not

    一.问题 maven打包的过程中报错如下: Failure to find cfca:backport-util-concurrent:pom:3.1 in http://maven.company. ...

  9. resolution will not be reattempted until the update interval of vas has elap

    转自:http://kia126.iteye.com/blog/1785120 maven在执行过程中抛错: 引用 ... was cached in the local repository, re ...

  10. eclipse出现编译错误:resolution will not be reattempted until the update interval o f central has elapsed

    场景:使用eclipse提交svn后,jenkins启动没问题,本地重新编译一直不通过,提示错误 local repository, resolution will not be reattempte ...

最新文章

  1. Java项目启动时执行指定方法的几种方式
  2. Matlab--sort排序
  3. buuctf [GKCTF 2021]你知道apng吗 <apng图片格式的考察>
  4. zookeeper3.4.6安装
  5. c现代方法 13章程序设计题 自己编写答案
  6. 使用Struts 2的查询网格(无插件)
  7. JavaScript图片 向下闪缩放的效果
  8. 爬虫教程 python3_【Python3爬虫】Appium入门教程
  9. visual stdio 工程 宏
  10. C语言实现2048小游戏
  11. 洛谷P2881 [USACO07MAR]排名的牛Ranking the Cows(bitset Floyd)
  12. python x轴加范围_Python,Matplotlib,subplot:如何设置轴范围?
  13. “.NET研究”理解.NET程序集的执行过程
  14. 威纶触摸屏键盘不显示数字_详解 | 威纶触摸屏数值输入元件应用
  15. 风力发电机组的基本结构
  16. 【排障】为什么你发出去的邮件被退回
  17. #10094. 「一本通 3.5 练习 2」消息的传递
  18. 解决双卡4G模式下不能接听和拨打电话问题
  19. 计算机应用基础 机考,计算机应用基础机考答案
  20. HTML5/JavaScript 图像边缘羽化— 打造图像处理类库第二步

热门文章

  1. 疫情当头,宅家看剧!微信公众号图文应该这样排版
  2. spacy词性标注解释【dep、pos、tag】
  3. What is Drilldown configuration
  4. php提取网页mp3,怎样提取网页视频中的音频文件
  5. python图片变清晰的软件_Python功能确实非常强大!不止PS可以美化照片Python也可以!满分...
  6. 宏碁台式计算机u盘启动,宏基台式机bios设置u盘启动方法
  7. MongoDB的安装和基础CRUD
  8. win2008服务器系统玩红警,如何让Win8顺利兼容红警2
  9. ros怎么跑小车_ROS与RACECAR教程-Arduino ROS节点进行小车控制
  10. [TimLinux] Python3 Coverity zeep/SOAP 库使用示例