Tried project from example: sonar-scanning-examples/sonar-scanner-maven/maven-basic at master · SonarSource/sonar-scanning-examples (github.com)
Failed with errors below:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar (default-cli) on project sonarscanner-maven-basic: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar: org/sonar/java/model/ModifiersUtils
…
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar: org/sonar/java/model/ModifiersUtils
…
Exception in thread “Thread-6” java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
at ch.qos.logback.classic.spi.LoggingEvent.(LoggingEvent.java:145)
…
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy
The 2nd error is reported here: Error after analysis - NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
When scan against sonarqube-10.4.1.88267 and below version, no problem at all.
Could you please help? Thanks
Environment:
sonarqube-10.5.0.89998: download community version zip file
Windows 10
Java 17