The following are some tips on using the AspectJ plugin with the Cobertura plugin. Your mileage may vary. You may need to tweak them. Please report any problems, improvements, alternatives, and/or new ones to the user list.
Add this to the maven.xml file.
For more information, review this Cobertura bug report .
If you experience out of memory with one or more plugins and the AspectJ plugin, perhaps the configuration causes recursive calls of the AspectJ plugin. This preGoal ensures AspectJ is called only once. Add it to the maven.xml file.