I have a bunch of Maven projects built in Hudson, with Sonar sitting in the sidelines. Sonar gives me Sonar statistics, FindBugs statistics and code coverage.
I noticed that regardless of whether I use Sonar or use EMMA through Maven directly, the entire build cycle runs twice. This includes init (which, in my case, reinitializes the database - is expensive) and unit tests (a few hundred are also expensive).
How can I prevent this? I read a lot, and it seems to be related to the design of the code plugins - to keep uninstrumented classes separate from the instrumental ones.
I tried settings like:
- Maven Launches: Deployment, EMMA
- Maven runs: deploy; deployment in sonar upon completion
source
share