Get Following error while integration with Jenkins and SonarQube for code quality pipeline.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project MavenEclipseProject: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184: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
Jdk version in 1.8.0_202
Jenkins version Jenkins 2.319.2
SonarQube version * Community Edition
If Java 11 is telling you that it cannot recognize Java 11 class files, I think you have a larger issue
How are you pointing to the Java 11 distribution? What steps did you take? What does your pipeline configuration look like? We cannot guess – so please add all the details you can.
Facing same issue, even that I change my JDK to Version 11, it still throwing following error.
Shall I create new Thread or can you help here. java -version
openjdk version “11.0.3” 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)