Sonarqube add excluded java files

Hi

How can I exclude java file using jenkins file, I have used below file but build failed
pipeline {
agent any
stages {
stage(‘Sonar Scan’) {
properties {
property “sonar.exclusions”, “/var/lib/jenkins/workspace/checking_adminproject_develop/sa-application-ui/node_modules/date-fns/esm/fp/subMinutes/
}
steps {
withSonarQubeEnv(installationName: ‘sonarqube’){
sh ‘mvn clean package sonar:sonar’
sh ‘sonar-scanner -Dsonar.projectKey=adminproject -Dsonar.projectName=adminproject -Dsonar.sources=. -Dsonar.java.binaries=.’
}
}
}
stage(‘Quality Gate’) {
steps {
timeout(time: 5, unit: ‘MINUTES’) {
waitForQualityGate abortPipeline: true
}
}
}
}
}

Hey there.

The documentation on Narrowing the Focus should help you out.