报错信息:
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
解决方案:
右键你的项目 -> Maven -> Update Project… -> 点击ok
如果无效,就选中红框内的单选框,再OK

本文介绍了解决Maven项目中出现的依赖下载失败问题的方法。当遇到因权限问题导致的依赖包下载错误时,可以通过右键项目,选择Maven>UpdateProject并勾选强制更新选项来尝试解决。这一操作将重新从远程仓库获取最新的依赖信息。
3286

被折叠的 条评论
为什么被折叠?



