How to create two sonar reports from the same project?

I would like to create two sets of Sonar reports from the same project. Everyone would have everything, and another would have excluded some packages.

Is this possible, and if so, how to do it?

Edit: setting exceptions is not a problem, but has two reports.

+4
source share
1 answer

Create a new profile in maven and add a call sonar with a new branch for each profile: mvn clean install -Pprofile1 sonar:sonar -Dsonar.branch=BRANCH1

See Exclude Example or Sonar maven Documentation for an example exception.

+13
source

Source: https://habr.com/ru/post/1398607/


All Articles