I'm working on one fairly big project (around maven 550 modules). Now, I was wondering how to run sonar on such a big project at the level of CI (we use Jenkins for this)
If we run mvn sonar:sonar
out of parent pom folder, it runs for ~1 hour and then just fails on OutOfMemory even if we increase it significantly (~16GB)
So, we examine other strategies of running sonar. Currently the most appealing ideas are:
Run sonar for each module during the lifecycle.
Maintain the list of (sub)modules for which the sonar should be run in parallel during the post build phase.
So, I would like to ask what is the best way to run sonar for such a big project? Could someone please provide some generic configuration for implementing the first or second idea or describe any other way/best practices?