Class StartJarMojo

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

      • StartJarMojo

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