English 中文(简体)
Maven下载次数。 更新后作为延期
原标题:Maven downloads have .lastUpdated as extension

我有一只Eclipse,上面有m2eclipse和颠覆。 我从猪肉进口了一个maven2项目。 但是,我收到错误信息,即一整条手工艺品缺失(例如:遗失的手工艺品:子女测试:jar:3.0.1。

如果我看一下我的存放处,我会在那里看到杰尔档案,但可以额外延长。 为什么是ven的,最后是jar? 更重要的是:我如何确定这一点?

我的OMS没有提及最后一次更新的类型。

问题回答

这些档案显示,Maven试图下载档案,但未获成功。 为了挽救带宽,在档案中载明的某个时间段已经过去之前,不会再次试图这样做。 指挥线开关——U forces maven ,以便在回历期之前进行更新。 如果你试图在与网络脱节的同时建造网络,这或许是必要的。

删除这些档案的方法与大多数版本的黑文有关,但由于档案是内部传闻,我不建议采用这种方法。 没有任何保障说明这一信息在其他地方没有被提及或保存,这种操纵可能会破坏该系统。

http://stackoverflow.com/questions/2529218/maven-downloads-have-lastupdated-as-extension/2556035#2556035" 尽管如此,我还是要删除所有这些<代码>。 在短链氯化石蜡中,我为设计了几处文字。

find -name *.lastUpdated -exec rm -fv {} +

只是用以前的内容制作一个档案,并将其放在你的当地Maven存放处。 通常为<代码>~/m2/repository。

我安装了Maven2,并从指挥线收集微米。 这个问题似乎已经解决。

您可能会对从存放处收回的一些艺术品产生问题。 例如,春季框架有自己的存放处。 当艺术品无法完全下载时,便添加了这种减速。 在您的陈词或环境中添加春天框架存放处,删除包括破碎jar的夹,并重新开始

如果你打过这个问题,并再次使用Nexus,那么你可能就有一个确定路线的规则,这是不正确的。 我击中了我,下载的档案被正确地点名,当时正在研究的URL-,但是它们都附有<代码>。

开放您的终点站,与您的Eclipse项目名录连接,运行:

mvn install

如果mvnstal ,则t t 更新您的属性,然后将其改为部队更新:

mvn install -U

这与你删除“最后更新”时篡改黑色档案相比,这是一种更加安全的做法。

利用该指挥系统将所有档案改名为:

for file in `find . -iname *.lastUpdated`; do renamed=$(echo $file | rev | cut -c13- | rev); echo renaming: $file to $renamed; mv $file $renamed; done

这对于不再下载所有来源都是有益的。

This not work... The .jar is lost. :(

我在处理这一问题时做了些什么:

Make sure you have the version of the latest maven-source-plugin plugin: https://maven.apache.org/plugins/maven-source-plugin/usage.html

$ mvn source:jar install 

现在,如果文件*. 最新消息存在于你的地方--------------------------------------------------------------------------------------------

这是未能成功从存放处提取物的副作用。 为了把你想要的实际内容输入贵国的存放处,在您的档案中检查通往存放处/存放处的正确道路,并解决任何证书/安全问题。 几乎是这些问题中的一个或另一个问题。

没有必要删除。 更新条目,从而解决了你的问题。





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.