天天看點

SpringBoot建立項目問題:ArtifactTransferException:Failure to transfer maven……

剛開始建立項目出現的問題是項目建立不了,顯示Import ……點開顯示:ArtifactTransferException:Failure to transfer maven…之後打開項目,項目上有紅叉,而且項目建立的檔案夾也都不完整,并報出另一個錯誤,大緻如下:

Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 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. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2): Access denied to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/maven-surefire-plugin-2.7.1.pom. Error code 407, Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the      

網上解決方法如下:我跳過第一步,隻使用了步驟(2)就直接解決了。不需要步驟(1)

(1)将C:\User.m2\repository\org\apache\maven\plugins\maven-deploy-plugin目錄下的檔案夾删除,