This is a bugfix release that addresses issues found in Clover-for-Maven 3.1.8 and earlier versions.
1) The clover2:setup and clover2:instrument goals have new configuration attribute: setTestFailureIgnore. If set to true, Clover will add several properties to the build configuration which disable a build failure for following plugins:
Thanks to this, a build continues despite test failures or code validation failures and thus it is possible to generate a Clover coverage report for failed tests at the end of the build. Code example is here.
Note: before version 3.1.10 the testFailureIgnore property was set to true for the forked Clover lifecycle ('instrument' goal) for 'test' and 'integration-test' phases. Since 3.1.10 it is no longer set.
2) The clover2:optimize and clover2:optimizeIntegration goals support full include/exclude syntax, which can be handled by maven-surefire-plugin. Two new cases which are handled right now:
(a) multiple paths separated by comma, like:
<include>**/Test1.java, **/Test2.java</include>
(b) regular expression instead of Ant-style pattern
<include>%regex[.*Test.class]</include>
See: http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
Reported in CLOV project
Please see also the Clover-for-Ant Changelog for all changes in the Clover product.