@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.LayoutTypeincludeSystemScope, project, projectHelper, session| 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
AbstractPackagerMojo.LayoutType if no explicit layout is set. |
getConfiguredPackager, getLibraries, getSourceArtifact, getTargetFilefilterDependencies, getFilters, setExcludeGroupIds, setExcludes, setIncludesprotected AbstractPackagerMojo.LayoutType getLayout()
getLayout in class AbstractPackagerMojolayout parameter, or null if the parameter
is not providedprotected org.springframework.boot.loader.tools.LayoutFactory getLayoutFactory()
AbstractPackagerMojo.LayoutType if no explicit layout is set.getLayoutFactory in class AbstractPackagerMojolayoutFactory 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException