在使用Maven時出現如下錯誤:
Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from 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.apache
分析問題:查閱資料後推測是包的問題。maven
一、找到maven的repository的位置ip
二、查看是哪一個包的問題,例如:問題是org.apache.maven.plugins:maven-jar-plugin包下的2.4出了問題。
則 刪除這個包。it
三、回到Eclipse右鍵項目選擇Maven->Update Project…io
從新maven下原理
原理:Maven包出錯,刪了就好
cli