2

我有这个错误:

[ERROR] Failed to execute goal on project com.my.cms: 
Could not resolve dependencies for project com.my.cms.jar:jar:0.0.1-SNAPSHOT: 
Failed to collect dependencies for [com.my.common.jar:jar:0.0.1-SNAPSHOT (compile), 
javax.servlet:servlet-api:jar:2.5 (provided), junit:junit:jar:4.11 (compile), 
commons-logging:commons-logging:jar:1.0.4 (compile)]: 

Failed to read artifact descriptor for com.my.common.jar:jar:0.0.1-SNAPSHOT:
Failure to find com.my.parent:pom:0.0.1-SNAPSHOT in http://10.168.0.1/nexus/content/groups/public 
  was cached in the local repository,  
  resolution will not be reattempted until the update interval of mymaven has elapsed or updates are forced -> [Help 1]

本地所有的库都有jar,但是已经从服务器下载了Maven的eclipse插件,报超时错误。

4

1 回答 1

3

You should at least to a mvn -U to force the update of dependencies, including snapshots.

Actually, read "How to update maven repository in Eclipse?"

Maven->Update Project->Force Update 
于 2017-09-20T04:38:25.853 回答