maven報錯:Failure to transfer xxx.jar from xxx was cached in the local repository.

出錯信息:

Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from http://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包下載失敗,可能是網絡不佳導致下載失敗,找到本地的倉庫的位置,搜索以lastupdated結尾的文件,刪除文件。

然後回到maven項目,右鍵maven—updateProject

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章