Maven下载有.lastUpdated为扩展名 [英] Maven downloads have .lastUpdated as extension

查看:1548
本文介绍了Maven下载有.lastUpdated为扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Eclipse安装程序,具有m2eclipse和颠覆性。我从svn导入了一个maven2项目。但是我收到错误消息,一大堆工件丢失(例如:缺少工件org.springframework:spring-test:jar:3.0.1.RELEASE:test)。



如果我查看我的存储库,我会看到jar文件,但它们有一个额外的扩展名.lastUpdated。为什么maven附加.last更新到罐子?更重要的是:我该如何解决?



我的POM中没有提到lastUpdated类型。

解决方案

这些文件向Maven表明它尝试通过下载获取存档,但未成功。为了节省带宽,在文件中编码的某个时间段已经过去之前,它不会再次尝试。命令行开关-U强制maven在重试期之前执行更新。如果您尝试在与网络断开连接时尝试构建,则可能需要这样做。



删除文件的方法适用于大多数版本的maven,但由于文件是内部纪录要maven,我不会推荐这种方法。不能保证此信息不被引用或保留在其他地方,并且这种操作可能会损害系统。


I have an Eclipse setup with m2eclipse and subversive. I have imported a maven2 project from svn. But I get the error message that a whole bunch of artifacts are missing (for instance: Missing artifact org.springframework:spring-test:jar:3.0.1.RELEASE:test).

If I look in my repository I see the jar files there but they have an extra extension .lastUpdated. Why is maven appending .lastUpdated to the jars? And more importantly: how can I fix this?

There is no mention of the type lastUpdated in my POMs.

解决方案

These files indicate to Maven that it attempted to obtain the archive by download, but was unsuccessful. In order to save bandwidth it will not attempt this again until a certain time period encoded in the file has elapsed. The command line switch -U force maven to perform the update before the retry period. This may be necessary if you attempted to build while disconnected from the network.

The method of removing the files works with most versions of maven, but since the files are internal mementos to maven, I would not recommend this method. There is no guarantee that this information is not referenced or held elsewhere and such manipulation can damage the system.

这篇关于Maven下载有.lastUpdated为扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆