I am trying to run SonarQube scanner in Jenkins Multi-stage pipeline against a SonarQube Developer Edition 7.3.0 server. Authentication is successful but the following error is throw by sonar qube scanner.
16:44:14 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project test-evergreen: Unable to load component class org.sonar.scanner.scan.ProjectLock: Unable to load component class org.sonar.scanner.scan.DefaultInputModuleHierarchy: Unable to load component class org.sonar.scanner.scan.ProjectBuildersExecutor: Unable to load component class org.sonar.plugins.github.PullRequestProjectBuilder: org.sonar.plugins.github.PullRequestProjectBuilder has unsatisfied dependency ‘class org.sonar.plugins.github.PullRequestFacade’ for constructor ‘public org.sonar.plugins.github.PullRequestProjectBuilder(org.sonar.plugins.github.GitHubPluginConfiguration,org.sonar.plugins.github.PullRequestFacade,org.sonar.api.batch.AnalysisMode)’ from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@7d247660:240<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@7e74a380:9<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@999b951:56<| -> [Help 1]
Can somebody please help in resolving this? This was working earlier with SonarQube server 6.7.5.
This error is caused by the sonar-github-plugin, that was deprecated some time ago, and stopped to be supported starting from SonarQube 7.2.
Simply remove it from your server extensions/plugins directory, and restart the server.
Thanks for your reply. I was able to figure this out. Our platform team has upgraded the server from 6.7.5 to 7.3 Developer Edition and they had copied the old plugins. Removing the sonar-github-plugin from the UI itself resolved the issue.