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
-
-
Constructor Summary
Constructors Constructor Description ImageGoal()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoExecute()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, 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 Detail
-
cli
@Parameter(property="buildx.cli", defaultValue="docker") public String cliimage build command line interface
-
-
Method Detail
-
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
-
-