Instrument source roots.
Note: Do not call this MOJO directly. It is meant to be called in a custom forked lifecycle by the other Clover plugin MOJOs.
Mojo Attributes:
testgenerate-sources| Name | Type | Description |
|---|---|---|
| cloverDatabase | String |
The location of the Clover database. |
| cloverMergeDatabase | String |
The location of the merged clover database to create when running a report in a multimodule build. |
| cloverOutputDirectory | String |
The directory where the Clover plugin will put all the files it generates during the build process. For example the Clover plugin will put instrumented sources somewhere inside this directory. |
| localRepository | ArtifactRepository |
Local maven repository. |
| pluginArtifacts | List |
List of all artifacts for this Clover plugin provided by Maven. This is used internally to get a handle on the Clover JAR artifact. Note: This is passed by Maven and must not be configured by the user. |
| project | MavenProject |
The Maven project instance for the executing project. Note: This is passed by Maven and must not be configured by the user. |
| Name | Type | Description |
|---|---|---|
| artifactResolver | ArtifactResolver |
Artifact resolver used to find clovered artifacts (artifacts with a clover classifier). |
| excludes | Set |
The list of file to exclude from the instrumentation. |
| flushInterval | int |
When the Clover Flush Policy is set to "interval" or threaded this value is the minimum period between flush operations (in milliseconds). Default value is 500. |
| flushPolicy | String |
The Clover flush policy to use. Valid values are directed, interval and threaded. Default value is threaded. |
| includes | Set |
The list of file to include in the instrumentation. |
| includesAllSourceRoots | boolean |
Whether the Clover plugin should instrument all source roots (ie even generated sources) or whether it should only instrument the main source root. Default value is false. |
| jdk | String |
Whether the Clover instrumentation should use the Clover jdk14 or jdk15 flags to parse sources. |
| licenseFile | String |
A Clover license file to be used by the plugin. If not specified, the Clover plugin uses a default evaluation license. |
| licenseLocation | String |
A Clover license file to be used by the plugin. The plugin tries to resolve this parameter first as a resource, then as a URL, and then as a file location on the filesystem. |
| waitForFlush | boolean |
If true we'll wait 2*flushInterval to ensure coverage data is flushed to the Clover database before running any query on it. Note: The only use case where you would want to turn this off is if you're running your tests in a separate JVM. In that case the coverage data will be flushed by default upon the JVM shutdown and there would be no need to wait for the data to be flushed. As we can't control whether users want to fork their tests or not, we're offering this parameter to them. Default value istrue. |
Artifact resolver used to find clovered artifacts (artifacts with a clover classifier).
org.apache.maven.artifact.resolver.ArtifactResolverNojava.lang.StringYes${project.build.directory}/clover/clover.dbjava.lang.StringYes${project.build.directory}/clover/cloverMerge.dbjava.lang.StringYesjava.util.SetNointNo500directed, interval and threaded.
java.lang.StringNothreadedjava.util.SetNobooleanNofalsejdk14 or jdk15 flags to parse sources.
java.lang.StringNojava.lang.StringNojava.lang.StringNoorg.apache.maven.artifact.repository.ArtifactRepositoryYes${localRepository}java.util.ListYes${plugin.artifacts}org.apache.maven.project.MavenProjectYes${project}booleanNotrue