Package org.basepom.mojo.repack
Class RepackMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.basepom.mojo.repack.RepackMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="repack",
defaultPhase=PACKAGE,
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public final class RepackMojo
extends org.apache.maven.plugin.AbstractMojo
Repack archives for execution using java -jar. Can also be used to repack a jar with nested dependencies by using
layout=NONE
.-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
setExcludedDependencies
(String... excludedDependencies) void
setIncludedDependencies
(String... includedDependencies) void
setOptionalDependencies
(String... optionalDependencies) void
setRuntimeUnpackedDependencies
(String... runtimeUnpackedDependencies) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RepackMojo
public RepackMojo()
-
-
Method Details
-
setIncludedDependencies
-
setExcludedDependencies
@Parameter(alias="excludedDependencies") public void setExcludedDependencies(String... excludedDependencies) -
setRuntimeUnpackedDependencies
-
setOptionalDependencies
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-