Integrating Maven with Java 8 and 11 with Sonar 9

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) - Sonarqube Developer Edition 9
  • what are you trying to achieve Integrating Sonarqube with Maven using Java 8 and 11
  • what have you tried so far to achieve this:
  1. With Java 11, integration is happening, but in Sonar console code coverae is not not showing (but lines of code, bugs etc are getting reflected), through for same code, using Sonarqube Community edition 6.7, code coverage is getting shown

  2. With Java 8, sonar is getting failed with Error “Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin

Hi,

It’s likely that you missed the switch from JaCoCo exec files to the XML reports. We no longer support exec reports. (As I understand it the JaCoCo folks consider that an internal file and never intended it to be used as a report.) You’ll need to generate XML reports instead.

 
HTH,
Ann