문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top