Class AbstractDockerMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    DockerfileMojo, DockerMojo, DockerNativeMojo, DockerPushMojo

    public abstract class AbstractDockerMojo
    extends org.apache.maven.plugin.AbstractMojo
    Abstract base class for mojos related to Docker files and builds.
    Since:
    1.1
    Author:
    Álvaro Sánchez-Mariscal
    • Field Detail

      • mavenProject

        protected final org.apache.maven.project.MavenProject mavenProject
      • nativeImageBuildArgs

        @Parameter(property="micronaut.native-image.args")
        protected String nativeImageBuildArgs
        Additional arguments that will be passed to the native-image executable. Note that this will only be used when using a packaging of type docker-native. For native-image packaging you should use the Native Image Maven Plugin configuration options.
      • appArguments

        @Parameter(property="mn.appArgs")
        protected List<String> appArguments
        List of additional arguments that will be passed to the application.
      • mainClass

        @Parameter(defaultValue="${exec.mainClass}",
                   required=true)
        protected String mainClass
        The main class of the application, as defined in the Exec Maven Plugin.
      • staticNativeImage

        @Parameter(defaultValue="false",
                   property="micronaut.native-image.static")
        protected Boolean staticNativeImage
        Whether to produce a static native image when using docker-native packaging
      • micronautRuntime

        @Parameter(property="micronaut.runtime",
                   defaultValue="NONE")
        protected String micronautRuntime
        The target runtime of the application
    • Method Detail

      • javaVersion

        protected org.apache.maven.artifact.versioning.ArtifactVersion javaVersion()
      • graalVmVersion

        protected String graalVmVersion()
      • graalVmJvmVersion

        protected String graalVmJvmVersion()
      • getFrom

        protected String getFrom()
      • getPort

        protected String getPort()
      • getCmd

        protected String getCmd()