maven解决“Could not calculate build plan”问题

错误提示如下:(eclipse+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

解决方法如下:

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

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

这样问题就解决了!

时间: 2024-08-24 01:54:15

maven解决“Could not calculate build plan”问题的相关文章

maven--解决“Could not calculate build plan”问题

错误提示如下:(eclipse+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 up

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved 此问题的解决: 1.要确认spring sts已经设置代理 2.要确认windows -> Preferences -> maven 的settings.xml文件中,设置代理. 3.C:\Users\ttt\.m2\

Eclipse导入Maven项目出现:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2

错误如下: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2... 解决方法: 1.项目右键->[Ma

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 in http://repository.jbo

maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 解决方法: 删除maven库

could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of(maven报错)

could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of 解决方法: 首先要确保eclipse中maven的配置正确! 找到自己的maven仓库所在的位置,例如我的: C:\Users\liugen.xu.m2\repository\org\apache\maven\plugins 找到repository\org\apache\maven\plugin

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of 解决方法: 首先要确保eclipse中maven的配置正确! 找到自己的maven仓库所在的位置,例如我的: C:\Users\liugen.xu.m2\repository\org\apache\maven\plugins 找到repository\org\apache\maven\plugin

maven问题之Could not calculate build plan:

问题描述: 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

Maven项目出现 could not calculate build plan:plugin 错误

刚刚创建Maven项目的时候出现了一点问题,新建工程的时候出现错误对话框:could not calculate build plan:plugin.(我是在开始配好Maven之后,在自动下载的时候给关了-),总之,解决方法就是找到maven的 .m2\repository\org\apache\maven\plugins\maven-deploy-plugin 文件夹,然后把这个文件夹下的文件删掉,一般应该是一个名为2.7的文件夹. 然后再出现错误的maven项目右键Maven->update