Using SonarQube 5.6.5 and SonarQube Scanner 2.8.
When our scan runs, I see two kinds of warnings that appear to be from the Findbugs plugin. There is only one occurrence of the first kind, and 198 of the second kind.
The first warning looks like this:
The following classes needed for analysis were missing:
com.stuff.csi.cpcdb.impl.processor.CsiInquireDeviceDetailsProcessor
This is odd, because this class does exist, and there are references to it, but the package it's in is different from what's specified here. It USED to be in this package, but it was moved to a different package about 1.5 months ago. I've searched the entire source tree, and I can't find any references to this fqcn.
My SonarQube scan is setting both the "sonar.java.binaries" and "sonar.java.libraries" properties, listing all our "classes" directories and artifact jar files, respectively.
I don't know what else I can do to debug this?
The second kind of warning is like this:
WARN: The class 'com.att.det.usl.account.api.to.InquireAccountProfileResponseTO' could not be matched to its original source file. It might be a dynamically generated class.
Our codebase has many classes that are scanned (>1000). There are 198 of these warnings. None of the classes in these warnings are dynamically generated. I don't know what distinguishes the classes cited in these warnings from other classes in our codebase.
When we run our scan, it is from a "<root>" directory, which is the parent (technically the parent parent) of a set of subprojects, all of which have conventional "src/main/java" directories (some people thought this warning might happen if you didn't have a "conventional" source directory name, which is not the case here). We set the "sonar.sources" property to the list of "src/main/java" directories. Most of the information we get from the SonarQube scan appears to be valid, so this list of source directories appears to be mostly correct. I don't know what might be causing this set of warnings.