Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Java project fail to integrate with sonar cloud with SonarScan pipe

Nitesh Tiwari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2020

Hi Team,

 

My pipeline failed and i got the below error:

 

"our project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property."

Below property I set:

-Dsonar.java.binaries=target/**/*.class

But  i got the error "java.lang.IllegalStateException: No files nor directories matching 'target/**/*.class'"

1 answer

0 votes
khai.tran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 7, 2022

I got the same issue but there is no binaries file in the source code

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events