更新Maven Central Repo的间隔

时间:2012-09-28 18:50:40

标签: maven

对Maven没有经验,我在项目上运行mvn clean install,这是我得到的错误:

[ERROR] Failed to execute goal on project dnasequencing.CompaNY.com: Could not resolve dependencies for project com.CompaNY.dnasequencing:dnasequencing.

CompaNY.com:war:1.0-SNAPSHOT: The following artifacts could not be resolved: dsr-kepler:dsr-kepler:jar:0.0.1-SNAPSHOT, dsr-parser:dsr-parser:jar:0.0.1-
SNAPSHOT: Failure to find dsr-kepler:dsr-kepler:jar:0.0.1-SNAPSHOT in http://repo1.maven.org/maven2/ was cached in the local repository, resolution 
will not be reattempted until the update interval of Maven_Central_Repo has elapsed or updates are forced -> [Help 1]

基于这些错误消息,我应该看一下找出问题的起点是什么?

1 个答案:

答案 0 :(得分:1)

您可以强制Maven使用-U标志更新快照。

对于出现问题的原因,您可以随时通过浏览器查看实际的Maven网站,看看依赖项是否确实存在。

http://search.maven.org/

如果依赖项未托管在Maven中心,那么它似乎是您必须在本地缓存中安装的本地依赖项(从该项目运行mvn clean install)。