Skip to end of metadata
Go to start of metadata
All Versions
Clover 2.3 Documentation

This page contains the installation instructions for Clover-for-Maven 2. On this page:

To use Clover with a Maven 2 project you only need to make small changes to settings.xml and pom.xml.

  1. Set up your .m2/settings.xml by adding:
    This step is not needed if you wish to only run Clover via the pom.xml.
.m2/settings.xml

to tell Maven where to look for the plugin.

  1. Set up your pom.xml by adding:
    pom.xml

(info) You will need to set up your licence, as a <licenseLocation> element in your pom.xml configuration file.

  1. Now, simply invoke Clover with Maven on the command line. This will instrument your sources, build your project, run your tests and create a Clover coverage database. Use the following code:
    which will create a coverage report. The coverage report will be created in this directory:

    Clover should now be fully set up for basic operation.

For more license configuration options, see the FAQ pages.

For more instructions, see the Clover-for-Maven 2 User's Guide.

Labels
  • None



Log a request with our support team.



Raise an issue for our developers.



See answers from the community.



Tweet, blog and update our documentation.

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.