resolution will not be reattempted until the update interval of mymaven has elapsed or updates are forced

与世无争的帅哥 提交于 2019-12-08 11:22:22

问题


I have this error:

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

All the local libraries have jar, but the eclipse plug-in for Maven has been downloaded from the server and reported a timeout error.


回答1:


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 


来源:https://stackoverflow.com/questions/46312133/resolution-will-not-be-reattempted-until-the-update-interval-of-mymaven-has-elap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!