打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Eclipse创建maven项目时,出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources错

文章目录

问题

在用Eclipse创建maven项目时,出现Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.6.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.6.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.6.1/maven-surefire-plugin-2.6.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错误

右下角出现进度条就表示能更新下载了

解决

清理重构

1.打开Eclipse→Window→Preferences,然后在Preferences窗口中找到Maven→UserSettings找到.m2文件的安装目录,

然后将.m2/repository/org/apache/maven/plugins目录下的文件夹全部删除,


选中maven项目,右键 → maven → update 让maven重新下载依赖包


下方加载完了就OK了

如果到这还不行,那就是setting.xml文件中可能有错误。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Maven2插件surefire配置心得
IntelliJ IDEA 12.0搭建Maven Web SSH2架构项目示例(二)
【SFA官方译文】:使用 Spring Boot 2.1 介绍 Servlet 4.0 的服务器推送...
maven2 (二) SCM
JETTY9(9.2.1)入门学习
Maven下,spring+struts2+ibatis整合
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服