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>