Reputation: 1330
I have many errors with sonarqube analyse in the Jenkins job with the analyse success
[ERROR] [14:36:44.124] Class not found: org.joda.convert.FromString
[ERROR] [14:36:44.126] Class not found: org.joda.convert.ToString
[ERROR] [14:34:42.441] Class not found: org.apache.commons.logging.Log
[ERROR] [14:34:42.724] Class not found: org.apache.oro.text.perl.Perl5Util
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModel
[ERROR] [14:34:31.442] Class not found: io.swagger.annotations.ApiModelProperty
[ERROR] [14:28:37.756] Class not found: org.apache.commons.logging.Log
[ERROR] [14:28:40.030] Class not found: org.apache.oro.text.perl.Perl5Util
SonareQube : 5.1.2
sonarQube jenkins plugin : 2.6
JDK : 1.7
Any help please
thanks
Upvotes: 15
Views: 7779
Reputation: 23525
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.FromString
Class not found: org.joda.convert.ToString
you'll see if the sonar-jmeter-plugin is not up to date for example.
Upvotes: 2
Reputation: 66
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>
Upvotes: 5
Reputation: 10833
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.
Upvotes: 2