git 报错:was cached in the local repository, resolution will not be reattempted until the upda
生活随笔
收集整理的這篇文章主要介紹了
git 报错:was cached in the local repository, resolution will not be reattempted until the upda
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。?
Could not resolve dependencies for project com.foreveross:gaei-syncpm:jar:0.0.1-SNAPSHOT: Failure to find com.oracle.jdbc:ojdbc7:jar:11.2.0.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced? 大體意思是jar包沒有下載完整,不過也要分兩種情況: 1.? 可能就是本地沒有下載完整,這里的原因可能第一次下載由于網絡原因不成功,之后maven也沒在嘗試。 將本地Maven倉庫中已下載的相關依賴 Jar 刪掉,從新 build update 工程即可! 引用This is often a false positive. Imagine you have a connection issue lasting only 5 seconds when Maven 3 tries to download a dependency, it will mark this dependency as unavailable for a delay. And thus will prevent you from replaying the build command even if the network issue is fixed.?
Just run the command with the -U option. Even if its description applies to snapshots, it seems to also fix the error if it occurred on a release.?
Example: mvn -U clean package
?
此外,我們可以在setting.xml中增加updatePolicy策略?
setting.xml指導 http://maven.apache.org/ref/3.3.1/maven-settings/settings.html 在setting.xml的schema中有這樣一個描述 schema http://maven.apache.org/xsd/settings-1.0.0.xsd 2.? 另一種情況就是我們依賴的nexus也沒有下載完整,這時候可能是配置的中央倉庫代理倉庫根本就不存在此jar,或者需要在第三方倉庫中才能找到,此時我們應該嘗試檢查和配置代理倉庫。?
?
轉自:https://blog.csdn.net/vtopqx/article/details/73457539
https://blog.csdn.net/shierqu/article/details/44787025
?
總結
以上是生活随笔為你收集整理的git 报错:was cached in the local repository, resolution will not be reattempted until the upda的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Linux】Linux中常用操作命令
- 下一篇: js读取本地excel文档数据