Package net.officefloor.maven
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault JMX port.protected intJMX port.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected Class<?>Obtains the mainClass.Obtains theProcessrunningOfficeFloor.protected voidloadAdditionalClasspathElements(List<String> classPathEntries) Loads additional class path entries.protected voidloadAdditionalSystemProperties(Properties systemProperties) Loads additional system properties.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_JMX_PORT
public static final int DEFAULT_JMX_PORTDefault JMX port.- See Also:
-
jmxPort
@Parameter(required=false, defaultValue="7777") protected int jmxPortJMX port.
-
-
Constructor Details
-
OpenOfficeFloorMojo
public OpenOfficeFloorMojo()
-
-
Method Details
-
getProcess
Obtains theProcessrunningOfficeFloor.- Returns:
ProcessrunningOfficeFloor. May benull.
-
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-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 Loads additional system properties.- 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.MojoFailureExceptionObtains the mainClass.- 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-