天天看點

ubuntu14.04系統解決 Oiginal error: Could not transfer artifact org.apache.maven:maven-artifact:jar:2.0.6

在Eclipse下建立maven項目,在pom檔案中報錯,錯誤如下:

Failure to transfer org.apache.maven:maven-artifact:jar:2.0.6 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.apache.maven:maven-artifact:jar:2.0.6 from/to central (https://
 repo.maven.apache.org/maven2): The operation was cancelled.
           

解決:

(1)在終端中進入對應的檔案

(2)在終端中先後輸入:

mvn clean

mvn build

mvn install

(3)回到Eclipse項目中,右鍵項目:Maven->Update project 記得勾選 “Fore Update of Snapshots/Releases”

解決~