Upgrade Notes for Clover-for-Maven 2 version 2.3.1:

1. Changes to artifactId in pom.xml

The artifactId must be changed from maven-clover-plugin to maven-clover2-plugin, throughout your pom.xml file.

2. Changes to System Properties

All Clover system properties are now fully namespaced. This means that all system properties now require a prefix of maven.clover. For example, the following properties must have the prefix 'maven.clover' added to them. This is an issue for backwards compatibility.

maven.clover.generateHtml
maven.clover.generatePdf
maven.clover.generateXml
maven.clover.generateJson
maven.clover.generateHistorical
maven.clover.orderBy

The change make these properties more consistent with all other properties, as well as making them safer to use with other plugins.
(info) Check your Continuous Integration (CI) command line to see if there are any system properties referenced.

3. Changes to Clover Goals

Wherever 'clover:' is used, you must change it to 'clover2:' to take advantage of the new version. This affects invoking Clover on the command line.

Read the Installation Guide for detailed instructions on how to install the plugin. Note that a full clean build is required (run mvn clean).

  • No labels