SonarQube upgrade from 6.4 to 6.5 breaks the scanner

后端 未结 4 1445
青春惊慌失措
青春惊慌失措 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:29

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

    Since SonarJava 4.12, you must specify sonar.java.binaries property https://docs.sonarqube.org/display/PLUG/Java+Plugin+and+Bytecode

    Example :

    sonar-scanner -Dsonar.projectKey=fr.demo:my-project -Dsonar.sources=. -Dsonar.java.binaries=.
    

提交回复
热议问题