Class 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 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 provisioningDir
        The 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 the target/server directory.
      • artifactResolver

        protected org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver
    • Constructor Detail

      • ApplicationImageMojo

        public ApplicationImageMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class PackageServerMojo
        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