本文介绍了请将sonar-maven-plugin更新到至少2.3版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Sonar Integration在Jenkins中构建一个项目.

I'm building a project in Jenkins with Sonar Integration.

一切顺利,直到声纳分析部分为止.我收到以下错误:

Everything goes smoothly until the sonar analysis part. I get the following error:

然后构建失败.

我必须说明我的项目pom.xml中没有声纳参考.这完全是通过Jenkins配置完成的.

I must explain that I have no references to sonar in my project pom.xml. This has been done exclusively with Jenkins configuration.

我正在使用Jenkins(1.599)和Sonar(5.0)上的最新可用版本.所有Jenkins插件均已更新.已经在寻找一种更新声纳Maven插件版本的方法,但是我找不到它:它不存在或者我不在正确的位置...

I'm using the latest available versions both on Jenkins (1.599) and Sonar (5.0). All Jenkins plugins are updated.Already looked for a way to update the sonar-maven-plugin version, but I can´t find it: either it doesn't exist or I'm not looking at the right places...

有人对此有任何想法吗?

Does anyone have any ideia how to work around this?

推荐答案

我能够通过管理Manage Jenkins->配置系统->滚动到SonarQube部分->单击高级->填写版本"来解决此问题. sonar-maven-plugin",以及您要使用的版本.....我使用了2.5.

I was able to fix this issue by going into Manage Jenkins -> Configure System -> Scroll to the SonarQube section -> Click advanced -> fill in "Version of sonar-maven-plugin" with the verison you would like to use.....I used 2.5.

这篇关于请将sonar-maven-plugin更新到至少2.3版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 06:05