我最近在jenkins上构建作业时遇到了一个错误,同样的构建在几周内就成功了,但昨天构建失败了,错误如下:
[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此文件包含:
#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=提前感谢您的帮助
发布于 2016-03-31 02:30:20
我在Eclipse (而不是Jenkins)中遇到了这个问题,我通过clearing my maven cache解决了这个问题。
Nestor Urquiza可能有这样的explanation:"pom.xml文件被以某种方式修改了“。如果清除缓存不起作用,他会提供进一步的帮助。
https://stackoverflow.com/questions/34333640
复制相似问题