【Maven】解決本地倉庫有,遠程倉庫沒有,導致打包失敗的問題


【打包出錯信息】

[ERROR]Failure to find org.apache.poi:poi-scratchpad:jar:4.1.1 in http://170.0.41.47:8081/repository/maven-public/ was cached in the local repository,resolution will not be reattempted until the update interval of bigdata-nexus3 has elapsed or updates are forced->[Help 1] [ERROR]

【原因】

原因是maven3.x版本在從遠程倉庫下載資源后,會生成對應的_remote.repositories文件,標示該資源的來源,如果你有這個文件_remote.repositories,那就不會訪問本地了,必須遠程上有才行,否則就會報錯。

【解決方案】

將_remote.repositories文件刪除。

【參考資料】

https://blog.csdn.net/qq_36205206/article/details/108487403

END

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM