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 void
doExecute()
void
execute()
int
executeCommand(Cmd<?> generator, boolean throwOnError)
protected int
executeCommand(Cmd<?> generator, String stdin, boolean throwOnError)
protected String
shortestPath(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 cli
image build command line interface
-
-
Method Detail
-
execute
public final void execute() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.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
-
-