0
votes

I am trying to integrate SonarQube 5.1.2 with Maven 3.3. But I think it's only supported till SonarQube version 5.1.

When I run mvn sonar:Sonar

Embedded error: Unable to build project for plugin 'org.codehaus.sonar:Sonar-mav en-plugin': POM 'org.codehaus.sonar:Sonar-maven-plugin' not found in repository: Unable to download the artifact from any repository

org.codehaus.sonar:Sonar-maven-plugin:Pom:5.1.2

from the specified remote repositories: central (http://repo1.maven.org/maven2),

Any thoughts?

2

2 Answers

0
votes

The correct command-line is mvn org.codehaus.mojo:sonar-maven-plugin:sonar (see the difference of groupId). It is supported by all versions of Maven 3 and SonarQube.

0
votes

sonar:Sonar != sonar:sonar beware of the spelling.