To get started with Clover-for-Maven 2 and 3, carry out the following steps.
Before you get started, add this to your .m2/settings.xml
file so you can reference Clover by its short name clover2
.
<pluginGroups> <pluginGroup>com.atlassian.maven.plugins</pluginGroup> </pluginGroups>
The quickest and easiest way to try Clover is from the command line:
mvn clean clover2:setup test clover2:aggregate clover2:clover
Goals:
You can find a report in target/site/clover
directory.
For more instructions, see the Clover-for-Maven 2 and 3 User's Guide.
For documentation presented in the standard Maven format, see the Maven Site Docs.