Creates an ueberjar including all dependencies into one jar.
Mojo Attributes:
compilepackage prior to executing itself.| Name | Type | Description |
|---|---|---|
| excludeDependencies | HashSet |
If provided the default is to include all dependencies but remove the ones specified. This parameter is mutual exclusive to includeDependencies. |
| excludeDependenciesInRelocation | HashSet |
If provided the default is to relocate all dependencies but exclude the ones specified. This parameter is mutual exclusive to includeDependenciesInRelocation. |
| includeArtifact | boolean |
Defines whether the original artifact should be include so that
the ueberjar is basically self contained. If set to false the
ueberjar will only include the dependencies of the project. Default value is true. |
| includeDependencies | HashSet |
If provided the default is to include no dependencies but the ones specified. This parameter is mutual exclusive to excludeDependencies. |
| includeDependenciesInRelocation | HashSet |
If provided the default is to relocate no dependencies but the ones specified. This parameter is mutual exclusive to excludeDependenciesInRelocation. |
| keepUnusedClasses | HashSet |
Explicitly mark classes matching the given patterns to be kept - no matter whether the analysis of minijar suggests otherwise. |
| keepUnusedClassesFromArtifacts | HashSet |
Explicitly mark all classes from the specified artifacts to be kept - no matter whether the analysis of minijar would suggest to remove (some of) them. |
| name | String |
Defines the pattern of the name of final ueber jar.
Possible substitutions are [artifactId] [version] and [groupId]. Default value is [artifactId]-[version]-ueber.jar. |
| projectHelper | MavenProjectHelper |
No description. |
| replaceArtifact | boolean |
By default the new ueberjar gets attached as an additional
artifact. If you want to replace the orignal artifact set
this to true. Default value is false. |
| stripUnusedClasses | boolean |
By default minijar will analyse the class dependencies and remove
classes that are not required for the execution of the project.
See the "keep.." parameters to explicitly override the behaviour
for classes or resource that only loaded via reflection or set
this parameter to false to turn off the magic. Default value is true. |
java.util.HashSetNo${excludeDependencies}java.util.HashSetNo${excludeDependenciesInRelocation}booleanNo${includeArtifact}truejava.util.HashSetNo${includeDependencies}java.util.HashSetNo${includeDependenciesInRelocation}java.util.HashSetNo${keepUnusedClasses}java.util.HashSetNo${keepUnusedClassesFromArtifacts}java.lang.StringNo${name}[artifactId]-[version]-ueber.jarorg.apache.maven.project.MavenProjectHelperNobooleanNo${replaceArtifact}falsebooleanNo${stripUnusedClasses}true