Domanda

I have a question regarding sonar analysis with maven.

I have a group of projects built by maven, and a handy pom files to aggregate the projects together, so that I can run one maven build for all projects.

I also would like to run sonar analysis against the aggregated pom. The analysis is done without errors, the only problem is the aggregated result: even though I run the analysis against the aggregated pom, I would like to get individual analysis result for each projects instead an aggregated report. Is there any configuration/argument to achieve this?

Thanks a lot.

È stato utile?

Soluzione

No, this can be achieved the way you're doing it. And you would advise you not to continue in this direction, as creating an "aggregator POM" is a just a workaround which has many side effects in Sonar.

The correct way to achieve what you want is to analyse each project independently and to create views & sub-views to aggregate all the information the way you want. For this, you need the Views Plugin.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top