sonarqube - How to skip a sub module in a sonar analysis in a multi module java project -
i have multi module maven project. need exclude 1 of sub module sonar anlaysis.
i run mvn sonar:sonar parent directory.
is there way specify exclusions in pom file or need configure in sonar qube.
from documentation:
you can either:
- define property
<sonar.skip>true</sonar.skip>
inpom.xml
of module want exclude- use build profiles exclude module (like integration tests)
- use advanced reactor options (such "-pl"). example }
mvn sonar:sonar -pl !module2
Comments
Post a Comment