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:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="image", requiresDependencyResolution=COMPILE_PLUS_RUNTIME, defaultPhase=PACKAGE) public class ApplicationImageMojo extends PackageServerMojoBuild (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).- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jboss.galleon.universe.maven.repo.MavenRepoManagerartifactResolverstatic intDOCKER_CMD_CHECK_TIMEOUTprotected StringprovisioningDirThe path to the directory where to provision the server.-
Fields inherited from class org.wildfly.plugin.provision.PackageServerMojo
runtimeName, skipDeployment
-
-
Constructor Summary
Constructors Constructor Description ApplicationImageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidenrichRepositories()voidexecute()protected StringgetGoal()-
Methods inherited from class org.wildfly.plugin.provision.PackageServerMojo
copyExtraContent, getDefaultConfig, getDeploymentContent, getDeploymentTargetName, serverProvisioned
-
-
-
-
Field Detail
-
DOCKER_CMD_CHECK_TIMEOUT
public static final int DOCKER_CMD_CHECK_TIMEOUT
- See Also:
- Constant Field Values
-
provisioningDir
@Parameter(alias="provisioning-dir", property="wildfly.provisioning.dir", defaultValue="server") protected String provisioningDirThe path to the directory where to provision the server. Can be an absolute path or a path relative to the buildDir. By default the server is provisioned into thetarget/serverdirectory.
-
artifactResolver
protected org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver
-
-
Method Detail
-
getGoal
protected String getGoal()
- Overrides:
getGoalin classPackageServerMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classPackageServerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
enrichRepositories
protected void enrichRepositories() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-