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

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

问题描述

我有一个带有 m2eclipse 和 subversive 的 Eclipse 设置.我从 svn 导入了一个 maven2 项目.但是我收到错误消息,说缺少一大堆工件(例如:缺少工件 org.springframework:spring-test:jar:3.0.1.RELEASE:test).

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).

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

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?

在我的 POM 中没有提到 lastUpdated 类型.

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

推荐答案

这些文件向 Maven 表明它试图通过下载获取存档,但未成功.为了节省带宽,在文件中编码的特定时间段过去之前,它不会再次尝试此操作.命令行开关 -U 强制 maven 在重试期之前执行更新.如果您在与网络断开连接的情况下尝试构建,这可能是必要的.

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.

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

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天全站免登陆