I am unable to execute sonar analysis for PMD. I have installed a plugin for pmd (sonar-pmd-plugin-3.2.1.jar) manually and restarted the sonarqube. triggered jenkins build for the pmd analysis where it throw the error, unsupported java version for pmd
. Please find snippet for reference.
Here are details for the plugins I have used:
SonarQube : 7.1
Jenkins : 2.164
PMD plugin : sonar-pmd-plugin-3.2.1.jar (manually placed under extensions folder in SonarQube)
Java Plugin: sonar-java-plugin-5.2.0.13398.jar (under extensions folder in SonarQube)
Sonar scanner: sonar-scanner-4.2.0.1873-linux
JDK : 1.8
Work around:
Have tried adding below both entries in sonar-scanner.properties file.
sonar.java.source=1.8 sonar.java.source=8
Have changed multiple plugins for PMD and JAVA under SonarQube, here are the reference of plugin versions:
I have attached the Jenkins build logs.