Sonarqube version - 9.1.1
java version of project 1.8
below are the commands
mvn --quiet clean install jacoco:prepare-agent jacoco:report
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar -Dsonar.projectKey=xxx -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_PROJECT_KEY -Dsonar.java.binaries=src/main/resources
have tries with -Dsonar.java.jdkHome=/usr/lib/jvm/java-8-openjdk-amd64 -Dsonar.java.source=1.8 as mentioned in doc , that too not working
even tried setting java_home to 11 before running the sonar analysis and reverting after it