Class StartMojo

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

    @Mojo(name="start",
          requiresDependencyResolution=RUNTIME)
    public class StartMojo
    extends AbstractServerConnection
    Starts a standalone instance of WildFly Application Server.

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

    Author:
    James R. Perkins
    • Constructor Detail

      • StartMojo

        public StartMojo()
    • 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
      • setJavaOpts

        public void setJavaOpts​(String value)
        Allows the javaOpts to be set as a string. The string is assumed to be space delimited.
        Parameters:
        value - a spaced delimited value of JVM options
      • getDefaultFeaturePackLocation

        protected String getDefaultFeaturePackLocation()
        Returns the default feature pack location if not defined in the configuration.
        Returns:
        the default feature pack location