Maven-010-maven 編譯報錯:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.


  今晚在編譯 maven 項目的時候,命令行報錯,出現 Failure to ... in ... 類似錯誤,詳細的錯誤信息如下所示:

  

[INFO] ------------------------------------------------------------------------
[INFO] Building arrow 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.473 s
[INFO] Finished at: 2016-02-22T21:30:55+08:00
[INFO] Final Memory: 5M/157M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-shade-plugin:2.4.3 or one of its dependencies could not be resolved: 
        Failure to find org.apache.maven.plugins:maven-shade-plugin:jar:2.4.3 in http://localhost:8081/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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

  由錯誤信息(was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced)可知,構件(org.apache.maven.plugins:maven-shade-plugin:jar:2.4.3)已經被占用,無法進行操作,進入本地倉庫對應目錄,將其對應版本文件夾刪除,重新執行打包命令,成功編譯打包,如下圖所示,哈哈哈。。。

  

 

至此, Maven-010-maven 編譯報錯:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced 順利完結,希望此文能夠給初學 Maven 的您一份參考。

最后,非常感謝親的駐足,希望此文能對親有所幫助。熱烈歡迎親一起探討,共同進步。非常感謝! ^_^

 

 


免責聲明!

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



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