Maven – Please update sonar-maven-plugin to at least version 2.3

Jenkinsmavensonarqubesonarqube-5.0

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

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

[ERROR] Failed to execute goal
org.codehaus.mojo:sonar-maven-plugin:2.2:sonar (default-cli) on
project project-whatever: Can not execute SonarQube analysis:
Please update sonar-maven-plugin to at least version 2.3 -> [Help 1]

and then the build fails.

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

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?

Best Answer

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.