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
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidfinal voidexecute()intexecuteCommand(Cmd<?> generator, boolean throwOnError) protected intexecuteCommand(Cmd<?> generator, String stdin, boolean throwOnError) protected StringshortestPath(Path dst) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.honton.chas.buildx.maven.plugin.config.ConnectionCfg
getCli
-
Field Details
-
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:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, IOException, ExecutionException, InterruptedException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionExecutionExceptionInterruptedException
-
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
-