I have a multi-module maven project. In my parent pom, it is like this -
<modules>
<module>a</module>
<module>b</module>
<module>c</module>
</modules>
I want to scan a & b's src/main/java but c is having a different structure like this: c/src/main/dir1/dir2/dir3/js1 & c/src/main/dir1/dir2/dir4/js2 I want to scan project c till dir3 but exclued dir4
It has become complex and I don't know what to include and exclude. I am using maven scanner and passing parameter in sonarqube plugin in jenkins as parameters like this:
-Dsonar.projectName="MyProject" -Dsonar.sources="." -Dsonar.projectKey="MyKey" -Dsonar.inclusions="src/main/java/**,c/src/main/dir1/dir2/**" -Dsonar.exclusions="c/src/main/dir1/dir2/dir3" -Dsonar.scm.disabled=true -Dsonar.sourceEncoding=UTF-8
I have tried making it modular also using sonar.modules, but the excluding of the required directories is not happening. What am I doing wrong?