Sonarqube 8.9.2 - warnings

We are getting below mentioned warnings in Sonarqube 8.9.2. As per other threads I added sonar.java.libraries in sonar-scanner.properties but still getting error, please provide the solution.

Dependencies/libraries were not provided for analysis of SOURCE files. The ‘sonar.java.libraries’ property is empty. Verify your configuration, as you might end up with less precise results.

Property ‘sonar.jacoco.reportPath’ is no longer supported. Use JaCoCo’s xml report and sonar-jacoco plugin.

Hi,

It sounds like you should take another look at the value you’ve configured there.

 
:woman_shrugging:
Ann

Thanks Ann for your reply.

Issue : Dependencies/libraries were not provided for analysis of SOURCE files. The ‘sonar.java.libraries’ property is empty. Verify your configuration, as you might end up with less precise results.
action taken : added sonar.java.libraries= and sonar.java.libraries.empty=true in sonar-scanner.properties file but still getting error

Issue : Property ‘sonar.jacoco.reportPath’ is no longer supported. Use JaCoCo’s xml report and sonar-jacoco plugin.
Action taken : We have added below lines in Jenkins pipeline under sonarqube steps
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml’
and developers has created jacoco.xml file on above mentioned path. Also added jacoco-maven plugin in pom.xml file (didn’t find sonar-jacoco plugin.). but still getting error.
can you please provide an example to resolve both issues.

Hi,

sonar.java.libraries.empty isn’t a valid parameter, so it will have no effect. And for the other, I’m not sure what you expect. The warning is telling you you haven’t provided a value and so analysis won’t be as good/thorough as it could be. And it’s only a warning. You’ll need to ether provide libraries or ignore the warning.

Can you please provide the analysis log?

 
Ann