Clover-for-Maven 2 and 3 Upgrade Guide

General instructions

1. Update version number of clover-maven-plugin in your pom.xml

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>clover-maven-plugin</artifactId>
    <version><!-- PUT CLOVER VERSION --></version> <!-- >= 4.1.1 ; for older versions plugin was called maven-clover2-plugin -->
</plugin> 

2. Update version number of clover dependency in your pom.xml (optional)

Your pom.xml may contain a dependency to Clover Core (com.atlassian.clover:clover). Update it's version number the same version as the clover-maven-plugin:

<dependency>
    <groupId>com.atlassian.clover</groupId>
    <artifactId>clover</artifactId>
    <version><!-- PUT CLOVER VERSION --></version>
</dependency> 


3. Update license key (optional)

Installing new license is necessary if you're installing a Clover version released after end of support date of your current license.

4. Delete existing coverage databases (optional)

Clover's database format may change in newer versions. In such case you may get a build error with a message informing about database incompatibility. In such case you have to delete old database files. 

(lightbulb) By default, databases are stored in module's /target directory; thanks to this incompatible databases are removed automatically upon 'mvn clean'.

Upgrading from specific releases

Please see the Clover Release Notes and the Clover-for-Maven 2 and 3 Changelog for version-specific upgrade instructions.

Last modified on Oct 12, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.