Failed to execute goal org.sonarsource.scanner.maven:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project test-parent: Cannot cast to

The version we are using is Sonarqube -8.9.6
JDK - 1.8

We are getting the error intermediately. Few time this works, some times this fails. We are unable to figure out the reason for failing.


The current version of SonarScanner for Maven is 3.9.1. Can you upgrade (you’ll need to upgrade your JDK too) and try again?