Currently java version is java 11, SonarQube is integrated with Jenkins, need help on issue:
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (sonarqube) on project amp.wcp.build: Execution sonarqube of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746: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
Thank you for your reply.
What’s the proper way to have Maven point to right location? we had a java 11 installed on build server, set
<sonar.java.jdkHome> ${SONARQUBE_JAVA_HOME} </sonar.java.jdkHome> in pom.xml Maven, and configurated to that location in Maven, but it seems it didn’t work.