简体   繁体   中英

Sonarqube with maven does not find artifact

I am trying to analyse my project with sonarqube .

I configure my project following the website, but the error below is shown when I run

mvn sonar:sonar

Error:

Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.codehaus.
mojo:sonar-maven-plugin' not found in repository: Unable to download the artifac
t from any repository

  org.codehaus.mojo:sonar-maven-plugin:pom:2.0-SNAPSHOT

Why is it looking for 2.0-SNAPSHOT ?

I just added this plugin to my pom.xml and it worked.

<plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>sonar-maven-plugin</artifactId>
   <version>1.0</version>
</plugin>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM