关于maven的.lastupdate后缀的产生与处理

新到项目导入代码,从中央仓库获取jar包后发现很多丢失,本地仓库中丢失的jar包有.lastupdate后缀。原因是导入jar过程中断网或中断传输。解决办法是删除.lastupdate文件,可在maven仓库cmd输入命令删除,还需在eclipse中右键项目maven更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

新到一个项目,导入代码,然后从中央仓库获取jar之后发现好多jar包丢失,去本地仓库通过名字查找后发现丢失的jar包都有.lastupdate后缀。

1,查阅资料后发现产生后缀的原因是再导入jar过程中断网或者中断传输产生了这种后缀的文件。

2,解决办法就是删除.lastupdate文件,删除文件方式有两种一个是搜索关键字,如果搜索.lastupdate的话会有xxxlastupdate.properties文件,网上有一种比较好的方法再maven仓库中打开cmd命令行输入:for /r %i in (*.lastUpdated) do del %i;再eclipse中右键项目maven----->update project

#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice. #Thu Mar 13 17:09:06 CST 2025 https\://repos.iec.io/repository/maven-zzy/.lastUpdated=1741856946183 https\://repos.iec.io/repository/maven-caf/.error= https\://repos.iec.io/repository/maven-trial/.error= https\://repos.iec.io/repository/maven-zzy-snapshots/.lastUpdated=1741856946213 https\://repos.iec.io/repository/maven-gsp/.error= https\://repos.iec.io/repository/maven-caf/.lastUpdated=1741856946152 https\://repos.iec.io/repository/maven-trial/.lastUpdated=1741856946079 https\://repos.iec.io/repository/maven-gsp/.lastUpdated=1741856946117 http\://maven.aliyun.com/nexus/content/repositories/central/.error= http\://maven.aliyun.com/nexus/content/repositories/central/.lastUpdated=1741856946329 https\://repos.iec.io/repository/maven-zzy/.error= https\://repos.iec.io/repository/maven-zzy-snapshots/.error= #NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice. #Thu Mar 13 17:09:07 CST 2025 https\://repos.iec.io/repository/maven-zzy/.lastUpdated=1741856946916 https\://repos.iec.io/repository/maven-caf/.error= https\://repos.iec.io/repository/maven-trial/.error= https\://repos.iec.io/repository/maven-zzy-snapshots/.lastUpdated=1741856946958 https\://repos.iec.io/repository/maven-gsp/.error= https\://repos.iec.io/repository/maven-caf/.lastUpdated=1741856946884 https\://repos.iec.io/repository/maven-trial/.lastUpdated=1741856946800 https\://repos.iec.io/repository/maven-gsp/.lastUpdated=1741856946850 http\://maven.aliyun.com/nexus/content/repositories/central/.error= http\://maven.aliyun.com/nexus/content/repositories/central/.lastUpdated=1741856947058 https\://repos.iec.io/repository/maven-zzy/.error= https\://repos.iec.io/repository/maven-zzy-snapshots/.error=
最新发布
03-14
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值