maven项目出现如下错误,求指点;CoreException: Could not calculate build plan:
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven项目出现如下错误,求指点;CoreException: Could not calculate build plan:相关的知识,希望对你有一定的参考价值。
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 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-compiler-plugin:pom:2.3.2 from/to central (http://repo1.maven.org/maven2): null to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
我是把另外电脑中的的正常的maven项目直接导入到我的myeclipse中的,不知道怎么回事就出现这个错误了!求指点!
出现这个错误因为maven本地仓库中缺少maven-resource-plugin:2.6这个相应的依赖文件。解决方法如下:
1、在eclipse中找到maven项目下的pom.xml文件打开,并添加下图红框中的内容。
2、打开dos命令控制台,进入到maven项目的目录(包含有pom.xml文件这一层级),然后选择 maven install 回车后发现maven会自动下载缺失的文件。
3、下载完成后,在eclipse中右键maven项目-Maven-Update Project 勾选Force Update of Snapshots/Releases这个选项,点击OK按钮,发现错误已经消失。
IDEA使用Maven打包Spark项目报错,求大神指点下
报错日志E:\代码\SparkLearning-master>mvn clean scala:compile compile package [ERROR] Error executing Maven.[ERROR] 1 problem was encountered while building the effective settings[FATAL] Non-parseable settings E:\maven\apache-maven-3.6.0\bin\..\conf\settings.xml: end tag name </settings> must match start tag name <mirrors> from line 147 (position: TEXT seen ...</activeProfiles>\n -->\n</settings>... @304:12) @ E:\maven\apache-maven-3.6.0\bin\..\conf\settings.xml, line 309, column 12
参考技术A 倒数第二行<profiles>改成</profiles>追答倒数第二行profiles改成/profiles
参考技术B 倒数第二行那个标签要么一对,要么删了追答那个profiles标签应该是吧,它是结尾标签需要加一个/
以上是关于maven项目出现如下错误,求指点;CoreException: Could not calculate build plan:的主要内容,如果未能解决你的问题,请参考以下文章
菜鸟问题 eclipse 刚建立的项目 再次导入不进来!求大神指点!!
org.hibernate.exception.ConstraintViolationException:违反唯一约束条件,求大侠指点