Jenkins 错误解析插件 maven-eclipse-plugin 的版本

Jenkins Error resolving version for plugin maven-eclipse-plugin

我最近在 jenkins 上构建我的工作时遇到了一个错误, 作业配置:jdk 版本:1.6_23,maven 版本:3.0.5,cmd maven:全新安装。

同样的构建上周成功了,但是今天构建失败了,我没有对jenkins的配置或项目的源代码进行任何更改,上周我们不需要指定插件 maven-eclipse-plugin 的版本,今天我在 pom.xml.

中没有指定插件版本时出现以下错误

任何人都可以帮助我,在此先感谢!

[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

此致, 优素福

我找到了两个解决此错误的方法:

  1. 用maven执行sonar并添加org.codehaus.mojo:sonar-maven-plugin:2.0:sonar选择正确的版本sonar-maven-plugin

  2. 修复manage jenkins中sonar部分的版本。