Can compilation and testing be avoided before cobertura? Or maybe there is another way around this?
There are several questions about this (see MCOBERTURA-83 , MCOBERTURA-76 ), but AFAIK, there is no ideal workaround (due to how the life cycle was built) in Maven 3 can be improved.
The only thing I know (works with CI servers) will work:
mvn clean install -Dmaven.test.skip=true
and then
mvn cobertura:check
Instead of binding cobertura:check to the build life cycle.
Note that compiling twice should not be a problem, since all classes must be updated.
source share