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 Details

    • RunMojo

      public RunMojo()
  • Method Details

    • 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
    • goal

      public String goal()
      Description copied from class: AbstractServerConnection
      The goal of the deployment.
      Specified by:
      goal in class AbstractServerConnection
      Returns:
      the goal of the deployment.