I encountered an error during the execution of SonarScanner with the following message:
java.lang.NoSuchMethodError: ‘org.sonar.api.batch.AnalysisMode org.sonar.api.batch.postjob.PostJobContext.analysisMode()’
at com.uipath.sonar.plugin.hooks.DisplayIssuesInScanner.execute(DisplayIssuesInScanner.java:26)
…
It seems to be related to a missing method in the execution context. The error occurs while attempting to execute the SonarScanner for a project. Here are some key details:
SonarScanner version: 5.0.1.3006
Java version: 17.0.7 Eclipse Adoptium (64-bit)
Operating system: Windows 10 10.0 amd64
Steps to reproduce:
Execute SonarScanner with the provided configuration.
Observe the error during execution.