@Mojo(name="build-image", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, requiresDependencyCollection=COMPILE_PLUS_RUNTIME) @Execute(phase=PACKAGE) public class BuildImageMojo extends AbstractPackagerMojo
AbstractPackagerMojo.LayoutType
includeSystemScope, project, projectHelper, session
Constructor and Description |
---|
BuildImageMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected AbstractPackagerMojo.LayoutType |
getLayout()
Return the type of archive that should be used when buiding the image.
|
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, getTargetFile
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()
AbstractPackagerMojo.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.MojoExecutionException