Maven的错误詹金斯解决版本的插件Maven的Eclipse的插件 [英] maven Error resolving version for plugin maven-eclipse-plugin in Jenkins
问题描述
我最近encoutered有一个错误,当我建立在詹金斯我的工作,
相同的构建是几个星期的成功,但昨天构建失败,出现以下错误:
I recently encoutered one error when i built my job on jenkins, the same build was success in few week, but yesterday the build fails with the following error :
[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
有关信息:
该插件:Maven的Eclipse的插件存在于项目的虚拟库,然后我不知道为什么构建失败......但是当构建失败,他们产生这个插件上的位置的一个文件。平方米仓库:生成的文件是:resolver-status.properties此文件包含以下内容:
For information : The plugin : maven-eclipse-plugin is existing in the virtual repository of the project, then i don't know why the build fails... , but when the build fails they generate one file in the location of this plugin on the .m2 repository : the file generated is : resolver-status.properties this file contain :
#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=
在此先感谢您的帮助。
Thanks in advance for your help
推荐答案
我在Eclipse中(不詹金斯)这个问题,我用的清除我的Maven的缓存。
I had this problem in Eclipse (not Jenkins), and I solved it by clearing my maven cache.
内斯特乌尔基萨可能有解释:在pom.xml文件被莫名其妙地修改。他给出了进一步的帮助的情况下,清除缓存不起作用。
Nestor Urquiza may have the explanation: the "pom.xml file gets somehow modified". He gives further help in case clearing the cache doesn't work.
这篇关于Maven的错误詹金斯解决版本的插件Maven的Eclipse的插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!