奇怪的Maven3错误

时间:2010-11-13 03:45:38

标签: maven maven-3

所有,我在使用maven(mvn clean install)构建时遇到此错误。 找不到问题的描述。也许有人遇到过它,它是什么意思以及如何解决它?如何强制更新?

Failure to find org.springframework:spring:jar:3.0.0.RELEASE in http://download.java.net/maven/2/ was cached in
the local repository, resolution will not be reattempted until the update interval of Java.Net has elapsed or updates are forced -> [Help 1]

1 个答案:

答案 0 :(得分:3)

不确定这是否适用于Maven 3,这里适用于Maven 2.这应该可以清理本地存储库:

mvn dependency:purge-local-repository

否则,请尝试从本地存储库中清除特定工件:

* Linux: ~/.m2
* Windows: C:\Documents and Settings\USER\.m2