Hi,
see sonarqube docs Java
Java Analysis and Bytecode
Compiled
.class
files are required for java projects with more than one java file. If not provided properly, analysis will fail with the message:Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
The Sonarqube scan usually runs after compilation as part of your build pipeline in Jenkins or similar.
Just point your sonar.java.binaries
to the right direction and you’re done.
With Maven and the Sonarqube Maven plugin it’s a piece of cake, it just works.
see SonarScanner for Maven
has examples for every tool.
Gilbert