-->

sonar-maven-plugin 5.1.1 not found

2020-07-26 09:16发布

问题:

I've just installed the latest version of SonarQube (5.1.1) and when I try to run the sonar:sonar target, I get an error:

Embedded error: Unable to build project for plugin 'org.codehaus.sonar:sonar-maven-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.1

I've checked here:

http://mvnrepository.com/artifact/org.codehaus.sonar/sonar-maven-plugin

And it seems that version 5.1.1 of the sonar-maven-plugin has not been pushed to the public repo(s).

Is that so or am I looking in the wrong location?

回答1:

The sonar-maven-plugin is an independent project that does not follow SonarQube versioning. Correct command-line is mvn org.codehaus.mojo:sonar-maven-plugin:2.6:sonar

The groupId mvn.codehaus.sonar is for internal use.