首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >插件的maven错误解决版本maven-eclipse-plugin in Jenkins

插件的maven错误解决版本maven-eclipse-plugin in Jenkins
EN

Stack Overflow用户
提问于 2015-12-17 19:37:25
回答 1查看 14.7K关注 0票数 1

我最近在jenkins上构建作业时遇到了一个错误,同样的构建在几周内就成功了,但昨天构建失败了,错误如下:

代码语言:javascript
复制
[ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-  eclipse-plugin' from the repositories [local (/cip/home/jenkins-V1/.m2/repository-Project), central (http://mrm.fr.company.com/Project-virtual), snapshots (http://mrm.fr.company.com/Project-virtual)]: Plugin not found in any plugin repository -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[JENKINS] Archiving /cip/home/jenkins-V1/workspace/project/pom.xml to project.pom
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException

有关信息: plugin : maven-eclipse-plugin存在于项目的虚拟存储库中,那么我不知道构建失败的原因……,但当构建失败时,它们会在.m2存储库中此插件的位置生成一个文件:生成的文件是: resolver-status.properties此文件包含:

代码语言:javascript
复制
#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Thu Dec 17 12:29:25 CET 2015
maven-metadata-snapshots.xml.lastUpdated=1450351765625
maven-metadata-central.xml.error=
maven-metadata-central.xml.lastUpdated=1450351765601
maven-metadata-snapshots.xml.error=

提前感谢您的帮助

EN

回答 1

Stack Overflow用户

发布于 2016-03-31 02:30:20

我在Eclipse (而不是Jenkins)中遇到了这个问题,我通过clearing my maven cache解决了这个问题。

Nestor Urquiza可能有这样的explanation:"pom.xml文件被以某种方式修改了“。如果清除缓存不起作用,他会提供进一步的帮助。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34333640

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档