-1

Error | Java | SonarQube | please provide compiled classes of your project with sonar.java.binaries property.

Below is my sonar-project.properties file. I have provided my binaries path. but still, I am getting the error message.

sonar.projectKey=Hello
sonar.projectName=JavaPro
sonar.projectVersion=1.0
sonar.java.sources=java
sonar.java.binaries=bin/A.jar
sonar.java.file.suffixes=java
sonar.sourceEncoding=UTF-8
Tibor Blenessy
  • 4,254
  • 29
  • 35

2 Answers2

6

Set your property like this sonar.java.binaries=bin, it has to be set to the directory containing the binaries.

Tibor Blenessy
  • 4,254
  • 29
  • 35
0

Sonar plugin is unable to find the binaries which means the project is not built first or packaged first execute

mvn clean package sonar:sonar

or

mvn clean package
mvn sonar:sonar
raja emani
  • 151
  • 1
  • 4