SonarQube upgrade from 6.4 to 6.5 breaks the scanner

后端 未结 4 1523
青春惊慌失措
青春惊慌失措 2021-02-14 03:58
  1. I am on sonarQube6.4 and have upgraded to 6.5
  2. Sonar-scanner is 3.0.3
  3. Now after the upgrade the scanner fails anytime there is a java file in the source p
4条回答
  •  被撕碎了的回忆
    2021-02-14 04:34

    The error message says:

    Error during SonarQube Scanner execution org.sonar.squidbridge.api.AnalysisException:
    Please provide compiled classes of your project with sonar.java.binaries property
    

    It seems like the java sensor requires the .class files, in addition to the .java files.

    You could:

    • Add those files to the analysis (it will by the way give you more valuable sonar findings!)
    • Try adding and removing files to find out, which piece of code causes the issue and report it as a Sonar Java bug

提交回复
热议问题