Sonarqube Dev edition Java issue

Hi Team,

Hope you are doing well.

I am using Sonarqube Developer edition 10.1 with Java 17.

But when I am trying to run the sonarqube with the jenkins pipeline, it is giving below error:
Failed to execute goal e[32morg.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonare[m e[1m(default-cli)e[m on project e[36mproduct-suite-3e[m: e[1;31mExecution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar: java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

In my code I am using java version 8.

Please help me to resolve the above error.

Regards
Sumit

Hey there.

Take a look at the documentation on Scanner Environment.