WARN: Findbugs needs sources to be compiled. Please build project before executing sonar or check the location of compiled classes to make it possible for Findbugs to analyse your (sub)project
ERROR: Error during SonarScanner execution java.lang.IllegalStateException: Can not execute Findbugs at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:188) at org.sonar.plugins.findbugs.FindbugsSensor.execute(FindbugsSensor.java:114)
Findbugs要求您的源代码已编译。 如果你按照Sonar文档 ,这是你应该做的:
mvn clean install -DskipTests=true mvn sonar:sonar
![](https://img2022.cnblogs.com/blog/576303/202211/576303-20221101182559846-768117062.png)