<sonar.exclusions> in pom.xml (Maven multi-module project) works locally but not on company server <sonar.exclusions> in pom.xml (Maven multi-module project) works locally but not on company server jenkins jenkins

<sonar.exclusions> in pom.xml (Maven multi-module project) works locally but not on company server


Try this, I had same issue and it worked for me

Don't start with "/src/main/java/"Instead start with "com/companyname/projectname/"

I personally prefer "**com/companyname/projectname/../**"


I might be mistaken, but you should remove the / characters at the beginning of the sonar.exclusions pathes, to have them computed relative to the project's root directory.