Class InstallProductMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.tibco.ep.buildmavenplugin.InstallProductMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="install-product", defaultPhase=VALIDATE, threadSafe=true) public class InstallProductMojo extends org.apache.maven.plugin.AbstractMojo

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.