Class NativeImageJibMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="native-image-jib", requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class NativeImageJibMojo extends AbstractDockerMojo
Builds a container image from a locally compiled native executable with Jib Core.
  • Field Details

    • NATIVE_IMAGE_JIB_GOAL

      public static final String NATIVE_IMAGE_JIB_GOAL
      See Also:
    • enabled

      @Parameter(property="micronaut.native-image.jib.enabled", defaultValue="false") protected boolean enabled
      Packages the generated native executable into a container image with Jib after native-image packaging.
    • executable

      @Parameter(property="micronaut.native-image.jib.executable") protected File executable
      Native executable to copy into the image. Defaults to target/<native imageName or artifactId>.
    • nativeImageJibBaseImage

      @Parameter(property="micronaut.native-image.jib.base-image") protected String nativeImageJibBaseImage
      Runtime base image for the native executable image. Jib from.image has higher precedence.
    • allowPlatformMismatch

      @Parameter(property="micronaut.native-image.jib.allow-platform-mismatch", defaultValue="false") protected boolean allowPlatformMismatch
      Allows packaging when the host OS/architecture differs from the selected Linux container platform.
  • Constructor Details

  • Method Details

    • execute

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