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

前端 未结 3 698
北恋
北恋 2021-02-07 03:45

I am currently using the sonarqube server 5.6 with scanner 2.6.1 and I keep getting errors during analysis for a java project. It appears to complain about some java files not c

相关标签:
3条回答
  • 2021-02-07 04:21

    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
    
    0 讨论(0)
  • 2021-02-07 04:31

    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.

    0 讨论(0)
  • 2021-02-07 04:35

    It works for me after defining :

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

    seen in :

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

    0 讨论(0)
提交回复
热议问题