您的位置:首页 > 编程语言 > Java开发

SpringBoot创建项目问题:ArtifactTransferException:Failure to transfer maven……

2017-08-09 14:47 681 查看
刚开始创建项目出现的问题是项目创建不了,显示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 Web Proxy service is denied.  ) log4j-test01 Unknown Maven Problem


网上解决方法如下:我跳过第一步,只使用了步骤(2)就直接解决了。不需要步骤(1)

(1)将C:\User.m2\repository\org\apache\maven\plugins\maven-deploy-plugin目录下的文件夹删除,

(2)然后右击项目Maven->Update Project->Update Dependencies(如果更新无效,选择强制更新如下图)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐