Build a JAR of the test classes for the current project.
Mojo Attributes:
testpackage| Name | Type | Description |
|---|---|---|
| finalName | String |
Name of the generated JAR. Default value is ${project.build.finalName}. |
| outputDirectory | File |
Directory containing the generated JAR. |
| testClassesDirectory | File |
Directory containing the test classes. |
| Name | Type | Description |
|---|---|---|
| archive | MavenArchiveConfiguration |
The archive configuration to use. See the documentation for Maven Archiver. |
| excludes | String[] |
List of files to exclude. Specified as fileset patterns. |
| forceCreation | boolean |
Whether creating the archive should be forced. Default value is false. |
| includes | String[] |
List of files to include. Specified as fileset patterns. |
| projectHelper | MavenProjectHelper |
No description. |
| skip | boolean |
Set this to true to bypass unit tests entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion. |
| useDefaultManifestFile | boolean |
Set this to true to enable the use of the defaultManifestFile. Default value is false. |
org.apache.maven.archiver.MavenArchiveConfigurationNojava.lang.String[]Nojava.lang.StringYes${jar.finalName}${project.build.finalName}booleanNo${jar.forceCreation}falsejava.lang.String[]Nojava.io.FileYes${project.build.directory}org.apache.maven.project.MavenProjectHelperNotrue to bypass unit tests entirely.
Its use is NOT RECOMMENDED, but quite convenient on occasion.
booleanNo${maven.test.skip}java.io.FileYes${project.build.testOutputDirectory}true to enable the use of the defaultManifestFile.
boolean2.2No${jar.useDefaultManifestFile}false