Package net.officefloor.maven
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 Summary
FieldsModifier and TypeFieldDescriptionprotected intFirestoreport.protected intHTTP port for servicing Google Function.protected intHTTPS port for servicing Google Function.Fields inherited from class net.officefloor.maven.OpenOfficeFloorMojo
DEFAULT_JMX_PORT, jmxPortFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>Obtains the mainClass.protected voidloadAdditionalClasspathElements(List<String> classPathEntries) Loads additional class path entries.protected voidloadAdditionalSystemProperties(Properties systemProperties) Loads additional system properties.Methods inherited from class net.officefloor.maven.OpenOfficeFloorMojo
execute, getProcessMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
httpPort
@Parameter(required=true, property="http.port") protected int httpPortHTTP 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 httpsPortHTTPS port for servicing Google Function.
Optionally specified.
-
firestorePort
@Parameter(property="firestore.port") protected int firestorePortFirestoreport.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:OpenOfficeFloorMojoLoads additional class path entries.- Overrides:
loadAdditionalClasspathElementsin classOpenOfficeFloorMojo- Parameters:
classPathEntries-Listto 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:OpenOfficeFloorMojoLoads additional system properties.- Overrides:
loadAdditionalSystemPropertiesin classOpenOfficeFloorMojo- Parameters:
systemProperties-Propertiesto 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.MojoFailureExceptionDescription copied from class:OpenOfficeFloorMojoObtains the mainClass.- Overrides:
getMainClassin classOpenOfficeFloorMojo- Returns:
- Main
Class. - Throws:
org.apache.maven.plugin.MojoExecutionException- If fails obtaining.org.apache.maven.plugin.MojoFailureException- If fails obtaining.
-