@Mojo(name="repackage", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, requiresDependencyCollection=COMPILE_PLUS_RUNTIME) public class RepackageMojo extends AbstractPackagerMojo
layout=NONE
can also be used simply
to package a JAR with nested dependencies (and no main class, so not executable).AbstractPackagerMojo.LayoutType
includeSystemScope, project, projectHelper
Constructor and Description |
---|
RepackageMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected AbstractPackagerMojo.LayoutType |
getLayout()
Return the type of archive that should be packaged by this MOJO.
|
protected org.springframework.boot.loader.tools.LayoutFactory |
getLayoutFactory()
Return the layout factory that will be used to determine the
LayoutType if
no explicit layout is set. |
getConfiguredPackager, getLibraries
filterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludes
protected AbstractPackagerMojo.LayoutType getLayout()
getLayout
in class AbstractPackagerMojo
layout
parameter, or null
if the parameter
is not providedprotected org.springframework.boot.loader.tools.LayoutFactory getLayoutFactory()
LayoutType
if
no explicit layout is set.getLayoutFactory
in class AbstractPackagerMojo
layoutFactory
parameter, or null
if the
parameter is not providedpublic void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException