Class RunMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="run",
          requiresDependencyResolution=RUNTIME)
    @Execute(phase=PACKAGE)
    public class RunMojo
    extends AbstractServerStartMojo
    Starts a standalone instance of WildFly and deploys the application to the server.

    This goal will block until cancelled or a shutdown is invoked from a management client.

    Note that if a WildFly Bootable JAR is packaged, it is ignored by this goal.

    Author:
    Stuart Douglas, James R. Perkins
    • Constructor Detail

      • RunMojo

        public RunMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • createCommandBuilder

        protected org.wildfly.core.launcher.CommandBuilder createCommandBuilder​(Path jbossHome)
                                                                         throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        createCommandBuilder in class AbstractStartMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException