Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2

maven第一次创建打包方式为war的项目报错下图的错,一般是第一次下载相关的文件时候出错,需要进入到maven的本地仓库中删除报错的文件,让它重新下载。

删除文件夹后,报错的项目右键选择maven>update project,重新下载该文件

下载完成后pom.xml文件还会有错误,如下图

解决方法:

方法一:项目右键选择java EE tools > Generate Deployment....

方法二:

项目右键properties

重新勾上后,如下图:

上面的两种解决方法的目录结构会不一样

第一种的目录结构:                      第二种的目录结构:

       

不知道有没有一次性解决的方法,上面这两种都是要创建项目后,操作一次。

如果还有另外的解决方法,欢迎在评论区讨论。

原文地址:https://www.cnblogs.com/unlasting/p/12207858.html

时间: 2024-11-09 01:47:52

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-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.6 or one of

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of 异常 http://stackoverflow.com/questions/12533885/could-not-calculate-build-plan-plugin-org-apache-maven-pluginsmaven-resources 在pom.xml新增: <build> <

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

Could not calculate build plan: Plugin org.apache.

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 Plugin org.apa

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

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