Class OpenOfficeFloorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.officefloor.maven.OpenOfficeFloorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
StartGoogleFunctionMojo

@Mojo(name="open", defaultPhase=PRE_INTEGRATION_TEST, requiresDependencyResolution=RUNTIME) public class OpenOfficeFloorMojo extends org.apache.maven.plugin.AbstractMojo
Open OfficeFloor Mojo.
Author:
Daniel Sagenschneider
  • Field Details

    • DEFAULT_JMX_PORT

      public static final int DEFAULT_JMX_PORT
      Default JMX port.
      See Also:
    • jmxPort

      @Parameter(required=false, defaultValue="7777") protected int jmxPort
      JMX port.
  • Constructor Details

    • OpenOfficeFloorMojo

      public OpenOfficeFloorMojo()
  • Method Details

    • getProcess

      public Process getProcess()
      Obtains the Process running OfficeFloor.
      Returns:
      Process running OfficeFloor. May be null.
    • loadAdditionalClasspathElements

      protected void loadAdditionalClasspathElements(List<String> classPathEntries) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Loads additional class path entries.
      Parameters:
      classPathEntries - List to add class path entries.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If fails loading.
      org.apache.maven.plugin.MojoFailureException - If fails loading.
    • loadAdditionalSystemProperties

      protected void loadAdditionalSystemProperties(Properties systemProperties) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Loads additional system properties.
      Parameters:
      systemProperties - Properties to load with additional system properties.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If fails loading.
      org.apache.maven.plugin.MojoFailureException - If fails loading.
    • getMainClass

      protected Class<?> getMainClass() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Obtains the main Class.
      Returns:
      Main Class.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If fails obtaining.
      org.apache.maven.plugin.MojoFailureException - If fails obtaining.
    • 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