Class ImageGoal

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, ConnectionCfg
    Direct Known Subclasses:
    Containerfile, RegistryLogin

    public abstract class ImageGoal
    extends org.apache.maven.plugin.AbstractMojo
    implements ConnectionCfg
    image build goal base functionality
    • Field Detail

      • cli

        @Parameter(property="buildx.cli",
                   defaultValue="docker")
        public String cli
        image build command line interface
    • Constructor Detail

      • ImageGoal

        public ImageGoal()
    • Method Detail

      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoFailureException,
                                  org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException
      • executeCommand

        public int executeCommand​(Cmd<?> generator,
                                  boolean throwOnError)
                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • executeCommand

        protected int executeCommand​(Cmd<?> generator,
                                     String stdin,
                                     boolean throwOnError)
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • shortestPath

        protected String shortestPath​(Path dst)