Class DockerfileMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="dockerfile",
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
    public class DockerfileMojo
    extends AbstractDockerMojo

    Generates a Dockerfile depending on the packaging and micronaut.runtime properties, eg:

    mvn mn:dockerfile -Dpackaging=docker-native -Dmicronaut.runtime=lambda
    Since:
    1.1
    Author:
    Álvaro Sánchez-Mariscal
    • Method Detail

      • execute

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