Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No plugin found for prefix 'sonar' in the current project and in the plugin groups

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.

like image 786
pragathi b Avatar asked Oct 28 '25 04:10

pragathi b


2 Answers

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

like image 100
mikero Avatar answered Oct 30 '25 13:10

mikero


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>
like image 34
Kev Avatar answered Oct 30 '25 13:10

Kev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!