天天看點

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

   今天使用maven碰到了這個異常,異常資訊如下:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

failure to transfer org.apache.maven:maven-parent:pom:17 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. original error: could not transfer artifact org.apache.maven:maven-parent:pom:17 from/to central (http://repo.maven.apache.org/maven2): no response received after 60000   pom.xml /mmseg4j-analysis   line 1  maven pom loading problem  

    解決辦法如下:

   windows環境下的話,請先進入你的本地倉庫所在檔案夾,比如我的本地maven倉庫檔案夾是e:\maven-repository,

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 ctrl + f在本地倉庫裡搜尋所有下載下傳失敗的jar,如圖操作:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 然後在你的項目上滑鼠右鍵----> maven----->update project,如圖:

the exception "Failure to transfer org.apache.maven:maven-parent" about Maven

 ok,然後問題就解決了。如果你還有什麼問題,請qq聯系我(qq:7-3-6-0-3-1-3-0-5).