I'm getting this error:
No plugin found for prefix 'sonar' in the current project and in the plugin groups [org.codehaus.mojo, org.apache.maven.plugins] available from the repositories
I have added all plugins in my local, but it's still showing the same issue.
Do you have pluginGroups in your settings.xml?
You can find the document from SonarQube
And double check if you define all your plugins in section
Since the link posted in the other answer is outdated: The current documentation can be found here https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
tl;dr:
Use this snippet in your settings.xml:
<settings>
    <pluginGroups>
        <pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
    </pluginGroups>
</settings>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With