“Class Not Found” during SonarQube analyse “Class Not Found” during SonarQube analyse jenkins jenkins

“Class Not Found” during SonarQube analyse


Add the following dependency to your pom

<dependency>    <groupId>org.joda</groupId>    <artifactId>joda-convert</artifactId>    <version>1.8.1</version>    <scope>provided</scope></dependency>


This error is displayed when the .class file of the mentioned class is not found. This might results in less accurate and less precise issues raised.

You should check your analysis configuration and more specifically the sonar.java.libraries property to be sure you provide the correct dependency to your project.


The root cause in our case were outdated Sonar plugins. In order to figure out which one it is you need to run a Maven debug build i.e. run it with -X. The

Class not found: org.joda.convert.FromStringClass not found: org.joda.convert.ToString

you'll see if the sonar-jmeter-plugin is not up to date for example.