Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SonarQube java binaries parameter

Omar May 7, 2020

Hi,

 

I have a simple java application on my windows machine, when running "sonar-scanner" from CMD the scan executes successfully. However, when I use Bmboo build plan I have the below as my Additional parameters:

-Dsonar.projectKey=Demo
-Dsonar.host.url=https://sonarqube.business.org
-Dsonar.login=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-Dsonar.java.binaries=C:\Users\omar\projects\OmarsWP9T2Demo

The build fails with this error: 

"NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
ERROR: Invalid value for sonar.java.binaries
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: No files nor directories matching 'C:\Users\omar\projects\OmarsWP9T2Demo'"

 

This is very odd since I have my .class files in this path 'C:\Users\omar\projects\OmarsWP9T2Demo'"

 

Can someone let me know how to fix this please?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events