I am having the problem given below while running "mvn sonar:sonar", since i have configured using this https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
No plugin found for prefix 'sonar' in the current project and in the plugin groups [org.sonarsource.scanner.maven, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C: \\Users\\someproject.m2\\repository), central ( https://repo.maven.apache.org/maven2)] -> [Help 1]
Exist the plugin in POM.xml file
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>5.1</version>
<dependencies>
<dependency>
<groupId>${jdbc.groupId.mysql}</groupId>
<artifactId>${jdbc.artifactId.mysql}</artifactId>
<version>${jdbc.version.mysql}</version>
</dependency>
</dependencies>
</plugin>
I am not sure the groupId is correct, I would try:
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.6.0.1398</version>
according to https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
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.