When you have this error message during sonar scanner win jenkins try the next solution !

Error msg : Your project contains .java files, please provide compiled classes with sonar.java.binaries property

Solution :

Try to configure the : Analysis properties / Propriétés de l’analyse of sonar scanner like the next configure :

sonar.projectKey= 8131572732578c67a30dbc6313a6813ecd8126d5
sonar.projectVersion=1.0
sonar.projectName=projet_formation
sonar.sources=src/main/java/
sonar.language=java
sonar.java.binaries=target/classes

Laisser un commentaire