In a Java project, I'm using Sonar with Maven and it's work fine with "sonar way" profile. But when switching to the "Sonar way with Findbugs" profile, it fails :
"Can not execute Sonar: Can not execute Findbugs: Findbugs needs sources to be compiled. Please build project before executing sonar and check the location of compiled classes."
The project is correctly build before the execution of Sonar. But the root module / project doesn't contains any classes. So target/classes is empty
My project is composed of several modules and a root pom.xml
Project
|_ Module 1
|_ Module 2
|_ Module 3
pom.xml
Sonar is running fine for every modules and try to analyze the root project but this one doesn't contains any classes so it fails.
Is there a way to exclude the root project / module (exclude root module is not possible) or tell sonar to only generate a warning in this case or another solution?
Thanks in advance.