Gradle project - Sonarqube Classes not found during the analysis

Hi, gradle project integrated with sonarqube. When building project get below error log

Classes not found during the analysis : [org.openid4java.consumer.ConsumerException, org.openid4java.consumer.ConsumerManager,,,,,,,,,,,,,,,]

Please help to resolve the issue?

I have added below parameters to build file.

sonarqube {
	properties {
		property "", "build/classes/java/main"
        property "", "lib/*.jar" 
        property "", "build/classes/java/test"
        property "", "lib/*.jar"   
        property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"    

Then the list in the classes not found reduced. But still it shows below classes not found

Classes not found during the analysis : [com.fasterxml.jackson.annotation.JsonInclude$Include, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.JsonS
erializer, com.fasterxml.jackson.databind.SerializerProvider, javax.persistence.AttributeConverter, javax.persistence.FetchType, javax.persistence.GenerationType, org.spring,, org.springframework.hateoas.ResourceSupport]

Could you please help to get rid this error?

Could you help me to sort out this issue?
Is this because of any plugin missing in sonar?


In order to help you:

  • Can you please provide the version of your SonarQube instance, as well as the version of the SonarSource Java analyzer you are using (you can find this info in the list of installed plugins)?
  • Are you sure you are providing all the jars to your analysis? Some transitive dependencies might not be visible.
  • Are you using the latest version of our Java analyzer?


version : Version 7.9.1 (build 27448)
As I mentioned above, in sonar properties listing the jar path. Last updated in November 2019.

In some projects when we not giving ‘jar’ file path, there is no warnings of ‘classes not found’ but when we give the path, get almost same classes listed above as ‘classes not found’

Hi Arun,

I’m not sure about what you are trying to achieve by specifying this property:

    property "", "lib/*.jar"

Do you have some additional libraries that you want to add to the ones declared in your build.gradle file, or are you trying to fix a bug in SonarScanner for Gradle about libraries’ definition?

Because, I did a test using SonarQube 7.9.1 (including Java analyzer 5.13.1) Java 11.0.7, Gradle 6.3 and it works fine without adding propetry.