- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="repackage",
defaultPhase=PACKAGE,
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class RepackageMojo
extends AbstractPackagerMojo
Repackage existing JAR and WAR archives so that they can be executed from the command
line using java -jar. With layout=NONE
can also be used simply
to package a JAR with nested dependencies (and no main class, so not executable).
- Since:
- 1.0.0
- Author:
- Phillip Webb, Dave Syer, Stephane Nicoll, Björn Lindström