1

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

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]
4

1 回答 1

3

不确定这是否适用于 Maven 3,以下是适用于 Maven 2 的方法。这应该可以清理本地存储库:

mvn dependency:purge-local-repository

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

* Linux: ~/.m2
* Windows: C:\Documents and Settings\USER\.m2
于 2010-11-13T04:15:19.817 回答