Class StartJarMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="start-jar", requiresDependencyResolution=RUNTIME) public class StartJarMojo extends AbstractStartMojo
Starts a WildFly Application Server packaged as Bootable JAR.

The purpose of this goal is to start a WildFly Application Server packaged as a Bootable JAR for testing during the maven lifecycle.

Since:
5.0
  • Constructor Details

    • StartJarMojo

      public StartJarMojo()
  • 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 server) throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      createCommandBuilder in class AbstractStartMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • standardOutput

      protected StandardOutput standardOutput() throws IOException
      Overrides:
      standardOutput in class AbstractStartMojo
      Throws:
      IOException
    • 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.
    • getServerHome

      protected Path getServerHome() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      getServerHome in class AbstractStartMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException