Maven Clover Plug-in Build File
Maven utilizes Ant
to provide users with an easy-to-use and familiar interface to
manage projects that have been described with a valid Maven project descriptor.
The build files that Maven
installs are stored in This document describes the Ant build file and targets that are available when using the Clover Plug-in with Maven.
The current recommended approach to using Maven is to add
delegators to these Maven-provided targets in your project's
main build file. This will enable you to use your existing
build file with the additional Maven functionality. In
addition, it is also recommended that you load a standard set of
property files. The property files will setup your environment,
The following table contains a brief overview of the
build file that is installed as part of the Maven Clover Plug-in in the
The build file utilizes various properties for default and user-configurable settings. All Clover Plug-in properties are described in the Properties document. The rest of this document assumes your project follows the standard Directory Layout; however, it is possible to override many of these defaults. clover/build.xml
maven:clover-testThis target instruments your code, runs your unit tests on it and generates a Clover database file. This target must be called prior to calling one of the report targets below.
Note : There is a limitation in Clover 0.5b. The
test coverage results are written to Clover database on JVM shutdown
only. Thus be careful to execute the maven:clover-report-html
Prior to running this target you should have called the
maven:clover-report-swing
Prior to running this target you should have called the
|