“Class Not Found” during SonarQube analyse

Inforedaster picture Inforedaster · Sep 2, 2015 · Viewed 7.4k times · Source

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

Answer

user5429174 picture user5429174 · Oct 9, 2015

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>