About connecting Sonar Qube EE with Java 8 project

Must-share information (formatted with Markdown):

  • which versions are you using :
    Sonar Qube EE,
    Scanner Version : Latest Version
    Plugin : 3.6.0
  • what are you trying to achieve : We are trying to connect our Java 8 project to Sonar Qube EE but its throwing error as below

Error : [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project : Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin: failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin: 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

  • what have you tried so far to achieve this : We have tried to downgrade plugin also tried to use deprecated Sonar scanner version but it didn’t work out.

Could you please suggest how we can connect.

Hey there.

Take a look at the documentation on Scanner Environment, which includes an example of building with Java 8 but analyzing with Java 11.