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 PackageServerMojo
Build (and push) an application image containing the provisioned server and the deployment.
The image
goal extends the package
goal, building and pushing the image occurs after the server
is provisioned and the deployment deployed in it.
The image
goal 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
FieldsModifier and TypeFieldDescriptionprotected org.jboss.galleon.universe.maven.repo.MavenRepoManager
static final int
protected String
The path to the directory where to provision the server.Fields inherited from class org.wildfly.plugin.provision.PackageServerMojo
BOOTABLE_JAR_NAME_RADICAL, JAR, runtimeName, skipDeployment
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.wildfly.plugin.provision.PackageServerMojo
buildGalleonConfig, copyExtraContent, getDefaultConfig, getDeploymentContent, getDeploymentTargetName, serverProvisioned
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DOCKER_CMD_CHECK_TIMEOUT
public static final int DOCKER_CMD_CHECK_TIMEOUT- See Also:
-
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/server
directory. -
artifactResolver
protected org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver
-
-
Constructor Details
-
ApplicationImageMojo
public ApplicationImageMojo()
-
-
Method Details
-
getGoal
- Overrides:
getGoal
in classPackageServerMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classPackageServerMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
enrichRepositories
protected void enrichRepositories() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-