Class StartGoogleFunctionMojo

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

@Mojo(name="start", requiresDependencyResolution=COMPILE) public class StartGoogleFunctionMojo extends OpenOfficeFloorMojo
Mojo to start Google Function.
  • Field Details

    • httpPort

      @Parameter(required=true, property="http.port") protected int httpPort

      HTTP port for servicing Google Function.

      Must be specified so that project is clear on integration test ports. This avoids possible changing default port number.

    • httpsPort

      @Parameter(property="https.port") protected int httpsPort

      HTTPS port for servicing Google Function.

      Optionally specified.

    • firestorePort

      @Parameter(property="firestore.port") protected int firestorePort

      Firestore port.

      Optionally specified.

  • Constructor Details

    • StartGoogleFunctionMojo

      public StartGoogleFunctionMojo()
  • Method Details

    • loadAdditionalClasspathElements

      protected void loadAdditionalClasspathElements(List<String> classPathEntries) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: OpenOfficeFloorMojo
      Loads additional class path entries.
      Overrides:
      loadAdditionalClasspathElements in class OpenOfficeFloorMojo
      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
      Description copied from class: OpenOfficeFloorMojo
      Loads additional system properties.
      Overrides:
      loadAdditionalSystemProperties in class OpenOfficeFloorMojo
      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
      Description copied from class: OpenOfficeFloorMojo
      Obtains the main Class.
      Overrides:
      getMainClass in class OpenOfficeFloorMojo
      Returns:
      Main Class.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If fails obtaining.
      org.apache.maven.plugin.MojoFailureException - If fails obtaining.