jarjar:jarjar

Full name:

org.sonatype.plugins:jarjar-maven-plugin:1.9:jarjar

Description:

Repackage dependencies and embed them into the final artifact.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
rules List - List of JarJar rules.
workingDirectory File - (no description)
Default value is: ${project.build.directory}/jarjar.

Optional Parameters

Name Type Since Description
excludes List - List of "groupId:artifactId" dependencies to exclude.
includes List - List of "groupId:artifactId" dependencies to include.
input String - Where to get the original classes.
output String - Where to put the JarJar'd classes.
overwrite boolean - When true, apply JarJar even if output already exists.
skipManifest boolean - When true, don't JarJar the manifest.

Parameter Details

excludes:

List of "groupId:artifactId" dependencies to exclude.
  • Type: java.util.List
  • Required: No

includes:

List of "groupId:artifactId" dependencies to include.
  • Type: java.util.List
  • Required: No

input:

Where to get the original classes.
  • Type: java.lang.String
  • Required: No

output:

Where to put the JarJar'd classes.
  • Type: java.lang.String
  • Required: No

overwrite:

When true, apply JarJar even if output already exists.
  • Type: boolean
  • Required: No

rules:

List of JarJar rules.
  • Type: java.util.List
  • Required: Yes

skipManifest:

When true, don't JarJar the manifest.
  • Type: boolean
  • Required: No

workingDirectory:

(no description)
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/jarjar