Class InstallProductMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Install product zip and tgz artifacts if not already installed.
This goal scans through the project dependencies and if a product zip or tgz artifact is not installed, it is installed into the $TIBCO_EP_HOME directory.
Dependencies with scope provided are skipped.
A markersDirectory is used to track if the artifact has already been installed - hence manually removing this directory will cause the artifacts to be re-installed. This directory is only created if there is a need to install an artifact.
To detect a manual installation of the product, a file specified by productValidationFile is used. If this file exists, then the product installation is not attempted.
If the plugin does install a zip, then an md5 sum of the original zip is saved - this allows installation of a newer version of the zip at a later time. This can happen with SNAPSHOTS.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static StringApplication packaging and typestatic final Stringstatic final Stringprotected static StringEventFlow packaging and typeprotected static StringDirectory used to import other Eventflow fragmentsprotected static StringJava packaging and typeprotected static StringLiveView packaging and typeprotected static Stringsystem property for reportsprotected static StringStreaming Web flow packaging and typeprotected static Stringmaven property to use to skip start/stop/tests if no tests existFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_SRC_MAIN_EVENTFLOW
- See Also:
-
DEFAULT_SRC_TEST_EVENTFLOW
- See Also:
-
TESTCASESFOUND_PROPERTY
maven property to use to skip start/stop/tests if no tests exist -
APPLICATION_TYPE
Application packaging and type -
JAVA_TYPE
Java packaging and type -
EVENTFLOW_TYPE
EventFlow packaging and type -
LIVEVIEW_TYPE
LiveView packaging and type -
TCS_TYPE
Streaming Web flow packaging and type -
REPORTS_DIRECTORY
system property for reports -
IMPORT_DIRECTORY
Directory used to import other Eventflow fragments
-
-
Constructor Details
-
InstallProductMojo
public InstallProductMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getAdminService
- Returns:
- The administration service
-
getBuildService
- Returns:
- The build service
-
getContext
- Returns:
- The Runtime Administration context
-
prechecks
public void prechecks()Check environment before running mojo
-