Why exclusion of folder "target" not work?

SonarQube 9.1

In my java project i want to exclude scan all folders with name “target”. So I exclude it in “General settings → Coverage exclusions” of my project like this:

**/target/**

But sonar still find issues in folder target.
E.g. it found issue here:

myProject-module1/module1-runtime/target/myProject/module1/app/jdk/db/RELEASE-NOTES.html

myProject-module1/module1-runtime/target/myProject/module1/app/jdk/db/README-JDK.html

I also add it to sonar.exclusions but it also not help:

I found solution:

I need in Jenkin’s job to change settings;

sonar.exclusions=**/target/**/*.*

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.