Package org.wildfly.plugin.provision
Class ApplicationImageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.wildfly.plugin.provision.PackageServerMojo
-
- org.wildfly.plugin.provision.ApplicationImageMojo
-
- All Implemented Interfaces:
ContextEnabled,Mojo
@Mojo(name="image", requiresDependencyResolution=COMPILE_PLUS_RUNTIME, defaultPhase=PACKAGE) public class ApplicationImageMojo extends PackageServerMojo
Build (and push) an application image containing the provisioned server and the deployment.The
imagegoal extends thepackagegoal, building and pushing the image occurs after the server is provisioned and the deployment deployed in it.The
imagegoal relies on a Docker binary to execute all image commands (build, login, push).Note that if a WildFly Bootable JAR is packaged, it is ignored when building the image.
- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static intDOCKER_CMD_CHECK_TIMEOUT-
Fields inherited from class org.wildfly.plugin.provision.PackageServerMojo
BOOTABLE_JAR_NAME_RADICAL, JAR
-
-
Constructor Summary
Constructors Constructor Description ApplicationImageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
Methods inherited from class org.wildfly.plugin.provision.PackageServerMojo
copyExtraContent
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
DOCKER_CMD_CHECK_TIMEOUT
public static final int DOCKER_CMD_CHECK_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws MojoExecutionException, MojoFailureException- Specified by:
executein interfaceMojo- Overrides:
executein classPackageServerMojo- Throws:
MojoExecutionExceptionMojoFailureException
-
-