Can not execute Findbugs Caused by: This project contains Java source files that are not compiled

北慕城南 提交于 2019-12-03 04:48:01
NicolasW

It works for me after defining :

sonar.java.binaries=[YOUR_BUILD_DIR] (target/classes)

seen in :

https://github.com/SonarQubeCommunity/sonar-findbugs/issues/49

We had the same issue for some projects (mainly Play Framework projects). I reverted the FindBugs plugin in SonarQube from version 3.4.3 to 3.3 (that I used on SonarQube 5.5) and then the analysis worked again.

My working configuration for SonarQube 6.2 with Maven-Multi-Module project

Parent

-- Module1

-- Module2

sonar.projectKey=projectKey
sonar.projectName=Project Name
sonar.projectVersion=1.0

sonar.modules=Module1,Module2

sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.language=java
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!