This is the documentation for Clover 4.0. View this page for the

Unknown macro: {spacejump}

of Clover, or visit the latest Clover documentation.

General instructions

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

<plugin>
    <groupId>com.atlassian.maven.plugins</groupId>
    <artifactId>maven-clover2-plugin</artifactId>
    <version><!-- PUT CLOVER VERSION --></version>
</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 maven-clover2-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.

  • No labels