简体   繁体   中英

SonarQube with Jenkins

I am trying to do sonar analysis using Jenkins. I have the maven based project and using the sonar plugin jenkin's in the post build action. Even the build status is successful but there are few errors in the log like:

[ERROR] [17:30:53.200] Class not found: aQute.bnd.annotation.ConsumerType

These Jar's are 3rd party libraries and not sure why it is looking for its .class file.

Any help is appreciated.

Thanks, Sanjiv

This error is bad logging level set in the sonar java analyzer as this is rather a harmless warning. This was fixed in version 3.11 of the plugin : https://jira.sonarsource.com/browse/SONARJAVA-1519

What it reveals is that the bytecode of your external dependencies was not properly provided to the analyzer and that some rules may have more false negatives.

You should provide the bytecode to the analysis to have more precise results using sonar.java.binaries and sonar.java.libraries properties.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM