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

时间:2015-12-22 15:18:24

标签: jenkins eclipse-plugin maven-3 maven-plugin

当我在詹金斯建立工作时,我最近遇到了一个错误, 作业配置:jdk版本:1.6_23,maven版本:3.0.5,cmd maven:clean install。

上周同样的构建成功,但今天构建失败,我没有对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 个答案:

答案 0 :(得分:0)

我发现了这个错误的两种解决方法:

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

  2. 修复管理jenkins中声纳部分的版本。

相关问题