0
点赞
收藏
分享

微信扫一扫

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目录下的文件夹删除,

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

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


举报

相关推荐

0 条评论