新建Maven項目,報錯:
apache
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://repo1.maven.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
緣由提示maven-surefire-plugin這插件沒有下載成功
查看目錄
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\
發現裏面有 jar包:
若是沒有,把裏面的內容刪掉,從新maven -> update project,從新下載!
可是目錄裏有包:
clear 下項目,錯誤依舊!
這些要查看eclipse的maven配置:
查看maven配置
要把maven設置成本身的本地安裝的maven目錄!
再從新maven -> update project! Ok!