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

Unknown macro: {spacejump}

of Clover, or visit the latest Clover documentation.

This page contains instructions on how to use Clover with the maven-bundle-plugin.

The following configuration is required to ensure that the clover.jar and any instrumented source files are ignored by the maven-bundle-plugin.

Procedure

Carry out the following steps.

  1. Make the bundle plugin process instrument the class files correctly
  2. Ensure the Clover artifact is not embedded in the bundle.

Example

Here, we are configuring pom.xml for the maven-bundle-plugin:

<Import-Package> <!-- Make the bundle plugin process instrumented class files correctly -->
  com_*;resolution:=optional
</Import-Package>
<Embed-Dependency>artifactId=!clover</Embed-Dependency> <!-- Ensure the clover artifact is not embedded in the bundle -->
  • No labels