Class ImageGoal

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.honton.chas.buildx.maven.plugin.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    image build command line interface

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    final void
     
    int
    executeCommand(Cmd<?> generator, boolean throwOnError)
     
    protected int
    executeCommand(Cmd<?> generator, String stdin, boolean throwOnError)
     
    protected String
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.honton.chas.buildx.maven.plugin.config.ConnectionCfg

    getCli
  • Field Details

    • cli

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

    • ImageGoal

      public ImageGoal()
  • Method Details

    • 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
    • doExecute

      protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, IOException, ExecutionException, InterruptedException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      IOException
      ExecutionException
      InterruptedException
    • 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)