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.MavenRepoManagerstatic final intprotected StringThe path to the directory where to provision the server.Fields inherited from class org.wildfly.plugin.provision.PackageServerMojo
BOOTABLE_JAR_NAME_RADICAL, JAR, runtimeName, skipDeploymentFields 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, serverProvisionedMethods 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/serverdirectory. -
artifactResolver
protected org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver
-
-
Constructor Details
-
ApplicationImageMojo
public ApplicationImageMojo()
-
-
Method Details
-
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
-