Class BuildImageMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
BuildImageForkMojo, BuildImageNoForkMojo

public abstract class BuildImageMojo extends AbstractPackagerMojo
Package an application into an OCI image using a buildpack.
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick, Jeroen Meijer
  • Constructor Details

    • BuildImageMojo

      public BuildImageMojo()
  • Method Details

    • getLayout

      protected AbstractPackagerMojo.LayoutType getLayout()
      Return the type of archive that should be used when building the image.
      Overrides:
      getLayout in class AbstractPackagerMojo
      Returns:
      the value of the layout parameter, or null if the parameter is not provided
    • getLayoutFactory

      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.
      Overrides:
      getLayoutFactory in class AbstractPackagerMojo
      Returns:
      the value of the layoutFactory parameter, or null if the parameter is not provided
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException