ERROR: Error during SonarScanner execution. I need some help

Hi,

I am also getting the same error, we are on Java17:

ERROR: Invalid value for ‘sonar.java.binaries’ property.

108INFO: EXECUTION FAILURE

ERROR: Error during SonarScanner execution

114java.lang.IllegalStateException: No files nor directories matching ‘server/plugins/JIRA GARD/build/’

Sonar.properties:
#Set based on Version of OpenJDK used with Jira

sonar.java.source=17
sonar.java.binaries=server/plugins/JIRA GARD/build/

Is this the correct way to declare folder with space in sonar.java.binaries?

Hi,

You’re presumably not building with raw javac commands issued from the commandline. You’re presumably using Maven or Gradle for the build. So you should use the corresponding SonarScanner for Maven or SonarScanner for Gradle for analysis. One of the benefits is that the scanner you pick should automatically know the locations of your source files, test files and binaries.

 
HTH,
Ann