which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube server 9.9.0.65466, SonarScanner 5.0.1.3006
how is SonarQube deployed: zip, Docker, Helm
Docker
what are you trying to achieve
When building both a library and a project that uses this library. Sonarqube fails its analysis saying that “0 compilation units analyzed”. (build 43)
We tried to not build the library and include the files of the library directly into the project and Sonarqube analysis works (build 42), it says “6 compilation units analyzed” (the lib is built out of these 6 files)
One clear difference we found is that in build #42, after “INFO: Loading cache from: server” sonarqube execute a command “DEBUG: Probing compiler” that is not present in build #43.
We tried changing the moment where the lib is built without success.
We think we probably need a way to tell SonarCube that a new scan is needed after the lib is built. On build #43, when it fails, the root cause is DEBUG: file xxx not marked as unchanged: file content changed. How could we trigger a new scan at this stage?