Maven依赖中类似was cached in the local repository样的错误

maven编译报错 was cached in the local repository 拉包失败 maven编译报错 was cached in the local repository 拉包失败 报错 [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3:repackage (default) on project otpweb: Execution default of goal org.springframework.boot:spring-boot-maven-plugi 阅读详情
我们在使用maven编译一个项目时经常会遇到诸如此类的问题。
   
Could not get the value for parameter encoding for plugin execution default-resources
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to find org.codehaus.plexus:plexus-utils:jar:1.1 in http://nexusserver:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of mirr...
   
was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced ->
大体意思是jar包没有下载完整,不过也要分两种情况。

一种可能就是本地没有下载完整,这里的原因可能第一次下载由于网络原因不成功,之后maven也没在尝试。

引用
This is often a false positive. Imagine you have a connection issue lasting only 5 seconds when Maven 3 tries to download a dependency, it will mark this dependency as unavailable for a delay. And thus will prevent you from replaying the build command even if the network issue is fixed. 
Just run the command with the -U option. Even if its description applies to snapshots, it seems to also fix the error if it occurred on a release. 
Example: mvn -U clean package

此外,我们可以在setting.xml中增加updatePolicy策略

setting.xml指导

在setting.xml的schema中有这样一个描述


schema

另一种情况就是我们依赖的nexus也没有下载完整,这时候可能是配置的中央仓库代理仓库根本就不存在此jar,或者需要在第三方仓库中才能找到,此时我们应该尝试检查和配置代理仓库。

出现 This failure was cached in the local repository and resolution is not reattempted until 解决方法(万能) cn.iocoder.boot:yudao-dependencies:pom:2.0.1-jdk8-snapshot was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of 阅读详情

相关推荐

关于Maven本地仓库中存在依赖时,重新下载was cached in the local repository错误

1. 本地已存在jar 项目中的一些依赖由于需要手动添加,很多时候都会创建一个私服仓库,比如nexus,将第三方jar添加到私服中,然后在pom中引用。如今朋友拿来一个项目,该项目之前下过依赖,这些依赖本地依旧存在,如今重新导入该项目,由于没了私服,于是删去私服地址后,执行mvn package后项目会重新到配置的仓库中找这些依赖下载。此时会报错"was cached in the local r...

九师兄 1万+

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

本文介绍解决was cached in the local repository, resolution will not be reattempted until the update ...的方法。

IT利刃出鞘的博客 13万+

usb设备的定位信息获取

一个usb hub有20个口,每个口有一个标号,那么如果一个为X的标号插入了一个android设备,如何通过函数,得到这个X,代码实现如下,获取了location, 得到类似 Port_#0002.Hub_#0003 的字符串,然后,要对应一个表。

babytiger的专栏 2115

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

was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> Maven 报错 解决办法: 1 一种可能就是本地没有下载完整,这里的原因可能第一次下载由...

HeatDeath的博客 1万+

Ubuntu docker镜像中下载安装 DPABI(DPARSF)

在Ubuntu服务器的docker镜像中用MATLAB运行DPABI(以及使用DPARSF的功能)。

Pandako's Blog 1735

浅谈天线 - - - GNSS/BT/4G/2.4G

全球定位导航系统,最成熟的就是美利坚,我大中华,俄罗斯,还有就是欧洲的一个(太次不谈)所以我们在项目调试的时候,小尺寸的陶瓷天线上一般兼容2个频段,体积大一点的可以兼容三个频段,采用组合的形式 GPS+BD GPS+GLONASS GLONASS+BD 或者是单频段的定位天线陶瓷PATC陶瓷片:陶瓷片面积越大,介电常数越大,其共振频率越高,接收效果越高,这就是为什么都推荐使用大一点的陶瓷天线的原因银层:陶瓷天线表面的银层可以影响天线的共振频率,理想的GNSS陶瓷片频点准确落在1575.42MH

BLACKHOLE6的博客 1万+

Idea Maven错误:was cached in the local repository, resolution will not be reattempted until the update

问题及原因 为了学习SpringBoot源码,springboot项目从2.4.5 更改为2.2.1.RELEASE,发现总是无法找到依赖,一开始以为是阿里云上没有这个jar,然后访问阿里云maven仓库发现是存在的,在maven project上点击reimport也无效,于是怀疑是idea的问题,之前maven down源码就出现过无法下载的问题,于是通过Terminal执行mvn compile也不行,但是看到报错原因了 was cached in the local repository, r

jcpp9527的博客 5万+

滞回比较器电路详细分析

滞回比较器是一种用于检测两个不同电压值并使比较器输出高电平或低电平的电路。滞回比较器的特点是具有迟滞特性,即当输入电压高于某一阈值时,比较器输出高电平,当输入电压低于另一阈值时,比较器输出低电平,而在这两个阈值之间,比较器的输出保持不变。比较器通常有两个模拟电压输入端UIN+和UIN-以及一个数字状态输出端UOUT。当UIN+大于UIN-时,UOUT为高电平;当UIN+小于UIN-时,UOUT为低电平。根据具体的系统定义,这两种电位的具体数值可以有所不同。

LuDvei的博客 2万+

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

was cached in the local repository, resolution will not be reattempted until的解决方法是 把出现该错误的依赖从本地库删除, 然后重新maven->update project 出现该错误时有时会同时提示其它依赖也找不到, 只要解决该问题其它错误提示会一并消失

yf.z的专栏 3万+

中国30米逐年植被净初级生产力(NPP)数据集(1982年至今CASA模型)

1.3 气温、降水、地表太阳辐射数据 气温和降水数据月度空间插值数据是基于全国2400多个站点的日观测数据,在计算各气象要素月值的基础上,基于Anusplin软件插值生成的1982年以来各月度30米分辨率气温和降水栅格数据,插值过程中引入高程作为协变量。气温单位为℃,降水单位为mm。1.2 土地覆盖数据 土地覆盖数据来源于1985 年-2020年全球30米精细地表覆盖动态监测产品,该数据集包含29个地表覆盖类型,进行拼接、裁剪、重分类和重采样处理,获得8期250米分辨率的植被类型数据。

地球资源数据云的官方博客 2855

智能车图像处理24-进阶篇16--三叉路口的判断

这篇文章主要讲述图像处理中如何判断三叉路口并进行补线操作。

taiyuezyh的博客 1万+

Maven基础:错误对应:was cached in the local repository

这篇文章记录一下Maven一个简单错误的原因和对应方法

知行合一 止于至善 2万+

在PPT里如何做出晶莹剔透的高级水泡感出来呢

水晶汽泡被大量使用在TED场景的演讲片稿中,给人以强烈的视觉冲击感。其实实现很简单。本篇就用三步教会大家如何制作这样的一种PPT效果。

打造全国最全的AI Agent开发知识领域的博客 1551

was cached in the local repository 问题解决(maven)

今天在编译maven时报错: [ERROR] Failed to execute goal on project logistics-service-api: Could not resolve dependencies for project com.baturu.logistics:logistics-service-api:jar:1.1.6_packageStatusFlow-SNAPSH...

qq_39172525的博客 3万+

可食用野生植物检测实战:基于YOLOv11的智能识别系统全流程指南

本文介绍了一种基于YOLOv11的可食用野生植物智能识别系统。该系统通过深度学习技术,能在0.2秒内精准识别植物是否可食用,准确率高达92%。文章详细阐述了从数据采集、标注到模型训练、验证的全流程,并开发了用户友好的Tkinter交互界面。该系统解决了户外探险和植物研究中植物识别的痛点,具有高精度、实时性和强泛化能力的特点,为户外安全提供了智能化解决方案。

FJN110的博客 171

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

Maven 构建失败--was cached in the local repository, resolution will not be reattempted until the update

问题来源 使用Maven构建项目时, 执行编译或者打包,报错误 was cached in the local repository, resolution will not be reattempted until the update interval of 发现是无法下载对应的依赖包。 解决方案 1, 到自己的.m2 文件夹或者执行的maven路径下把 xxx.lastUpdated文件全部...

russle的专栏 4万+

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

解决maven cached in the local repository问题

在执行maven clean package时遇到如下错误提示: Could not resolve dependencies for project org.springframework.boot:XXXX:jar:2.0-SNAPSHOT: Failed to collect dependencies at com.XXXX:XXXX:jar:2.0-SNAPSHOT: Failed ...

xiaoQL520的博客 1万+

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

商城项目:maven项目依赖was cached in the local repository错误

强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan 问题描述 项目中有分页功能,从而添加了mybatis分页的jar包,看到maven依赖包中有标红的,项目环境搭建完之后想要启动一下项目,就报了如下错误: Failure to find org.github.miemiedev:mybatis-paginator:j...

至尊宝 2万+

Maven错误:was cached in the local repository, resolution will not be reattempted until the update

问题 在Idea中使用maven将springboot项目打成jar包(使用idea- maven projects->具体项目->package命令 ),报错如下: 在网上找到解决办法如下:特此记录. 解决办法 1.删除~/.m2/repository/对应目录或目录下的*.lastUpdated文件,然后再次运行maven命令(经验证有用) 2.maven命令后加-U,如mvn ...

Ryze 2万+

maven报错was cached in the local repository, resolution will not be reattempted until the update inter

maven 打包时报错如下: [ERROR] Failed to execute goal on project XXX-file: Could not resolve dependencies for project cn.XXXX-file:jar:3.7.1-SNAPSHOT: The following artifacts could not be resolved: cn.XXXX:jar:1.0.0, XXXX-mcloud:jar:1.0.3: Failure to find cn.xxx.

技术博客 1919

Failure to find was cached in the local repository

maven 打包报错, 父工程 jar 包找不到; Failure to find XXX was cached in the local repository 到本地仓库, 找到本地打的包, 全部删掉. 然后重新从头开始 install 一遍就好了! ...

lihaiyong92的博客 1万+

maven编译项目时提示:cached in the local repository

maven编译项目时提示:cached in the local repository 博客分类: 编程错误及处理maven mavencachedreattempted  今天使用命令mvn compile编译maven项目时提示错误信息,部分错误信息如下: ...... was cached in the local repository, resolution will

zhairuiping1989的博客 8575

Maven-编译报错(was cached in the local repository...)

Maven-编译报错

zym_1321的博客 1万+

maven install 出现was cached in the local repository错误解决思路

第一 有可能是下载maven依赖时候,某个jar包没有下载完整,删除再重新下载一次 第二 可能是在引用jar包地址没有这个jar包了,maven一直优先使用缓存先当作依赖作为打包,可以每次强制刷新 <repositories> <repository> <id>central</id> <url>http://central</url>

一介书生的博客 4354

maven的Failure to find jar包 in 中央仓库 was cached in the local repository

错误提示:Failure to find jar包 in 中央仓库 was cached in the local repository, resolution will not be reattempted until the update interval of synjones has elapsed or updates are forced 该问题在idea中发现,eclipse中未发...

qq_39618582的博客 4298
上一篇: 平凡设计空间下四中基本EDP
下一篇: BPMN使用工具
shierqu
博客等级 码龄18年 340粉丝 268原创
评论 7
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值