今天建立了一個maven項目,出現如下錯誤:
Failure to transfer org.codehaus.plexus:plexus-archiver:pom:2.1
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. Original error:
Could not transfer artifact
org.codehaus.plexus:plexus-archiver:pom:2.1 from/to central
(https://repo.maven.apache.org/maven2): repo.maven.apache.org
試了許多辦法,最後發現一個很不錯的處理方法記錄下來:
在maven安裝目錄下的 maven--》conf 修改settings.xml,找到<mirrors>節點,在裡面添加:
alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
即在Maven設定添加阿裡雲倉庫, 然後重新開機ecplise,更新項目,問題解決!!!