Package org.springframework.boot.maven
Class RepackageMojo
- java.lang.Object
- org.apache.maven.plugin.AbstractMojo
- org.springframework.boot.maven.AbstractDependencyFilterMojo
- org.springframework.boot.maven.RepackageMojo
- 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 AbstractDependencyFilterMojo
Repackages existing JAR and WAR archives so that they can be executed from the command line using java -jar. Withlayout=NONE
can also be used simply to package a JAR with nested dependencies (and no main class, so not executable).
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepackageMojo.LayoutType
Archive layout types.
Field Summary
Fields Modifier and Type Field Description boolean
includeSystemScope
Include system scoped dependencies.
Constructor Summary
Constructors Constructor Description RepackageMojo()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Methods inherited from class org.springframework.boot.maven.AbstractDependencyFilterMojo
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludes
Field Detail
includeSystemScope
@Parameter(defaultValue="false") public boolean includeSystemScope
Include system scoped dependencies.- Since:
- 1.4
Constructor Detail
RepackageMojo
public RepackageMojo()
Method Detail
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException