Run Sonarqube code analysis for Maven was failing in Azure Devops

Hi Team,

I want to run sonarqube code analysis for our Maven project but it was failed when I was running code analysis as part of the Maven build in Azure Build pipeline. Can someone please advise/help me on this issue?

*Version used - sonarqube-

  • Errors observed - Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project Unable to load component class org.sonar.scanner.bootstrap.ScannerPluginInstaller: Unable to load component class org.sonar.scanner.bootstrap.PluginFiles: Unable to load component class org.sonar.scanner.bootstrap.GlobalConfiguration: Unable to load component class org.sonar.scanner.bootstrap.GlobalServerSettings: Not authorized. Please check the properties sonar.login and sonar.password
  • Able to build our maven project also I am getting target jar file after this sonarqube was failing as part of the build


It looks like you haven’t passed correct credentials in for the analysis. The docs should help.