I’m using the following configuration:
- Sonarqube: 9.9-Community version
- Maven Plugin 126.96.36.1994
- Java 11
Since my project uses Java 8, I configured maven.compiler.source and mave.compiler.target versions to 1.8 but whenever I tried to uses sonar I get the error:
Caused by: 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
I already used -Dsonar.java.jdkHome=/usr/lib/jvm/java-8-openjdk/ property to set Java 8 home directory. However, the error remains.