[Maven]添加新仓库或者新发布依赖后却获取不到问题的解决方案

来源:互联网 发布:用qq群推广淘宝客 编辑:程序博客网 时间:2024/05/22 09:39

tags: maven

[ERROR] Failed to execute goal on project settings: Could not resolve dependencies for project com.netease.mail:settings:war:1.0.0: The following artifacts could not be resolved: newbee:cmproxy:jar:1.0-45241, toolbox:cache-annotations:jar:1.1.27406.0, toolbox:mailsender:jar:1.1.0, newbee:ntescode:jar:1.0.21214.0, netease:dfs:jar:1.0: Failure to find newbee:cmproxy:jar:1.0-45241 in http://192.168.33.234/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project settings: Could not resolve dependencies for project com.netease.mail:settings:war:1.0.0: The following artifacts could not be resolved: newbee:cmproxy:jar:1.0-45241, toolbox:cache-annotations:jar:1.1.27406.0, toolbox:mailsender:jar:1.1.0, newbee:ntescode:jar:1.0.21214.0, netease:dfs:jar:1.0: Failure to find newbee:cmproxy:jar:1.0-45241 in http://192.168.33.234/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

已经将第三方依赖jar部署到私有仓库,但是在更新应用依赖时,仍然报找不到依赖文件。最终要的提示信息为上日志中间的那个提示:

resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

类似与缓存未清理或者last-visit这种提示信息。如何强制要求从私有仓库进行尝试获取依赖文件呢?
参考了Nexus添加新Repository后Maven仍找不到jar包的解决方案,

命令行下:其中提到了使用-U参数(-U,--update-snapshots Forces a check for updated releases and snapshots on remote repositories),

Eclipse中:在eclipse Run Configuration中勾选Update Snapshots,再run后依赖可以获取。


0 0
原创粉丝点击