TIBCO BusinessEvents Maven Plug-in Phases
TIBCO BusinessEvents Maven plug-in overrides the Apache Maven phases with respect to TIBCO BusinessEvents. Thus, running the same Maven phases, you can build or deploy BusinessEvents applications. The BusinessEvents Maven plug-in also adds a
buildProjectLib build lifecycle for building and installing the project library.
The Maven phases refer to the pom.xml file of the BusinessEvents application for the required arguments. See BusinessEvents Application POM File for more details about the BusinessEvents application pom.xml file.
You can call to run a Maven phase in the command prompt using the following syntax:
mvn <phase>
In a build lifecycle, the phases are run sequentially to complete the build lifecycle. It means that whenever you call a phase to run in the lifecycle, all the previous phases are completed in sequence. Thereafter, the phase that you have called is run. For example, you have called the install phase:
mvn installIn such cases, first the
compile phase is run, then the
test phase, then the
package phase, and finally the
install phase is run.
The following tables list (in sequence) all the phases available in the BusinessEvents Maven plug-in.
| Phases | Description |
|---|---|
compile
|
Compiles the BusinessEvents project. The |
test
|
Runs BusinessEvents JUnit tests in the BusinessEvents project under the
JavaSrc folder. The test-compile phase that runs before the test phase checks whether the project contains test resources existing in the testSource directory JavaSrc folder. This directory can be overridden by setting the testSourceDirectory property. It searches for the BusinessEvents JUnit tests with the following file names:
It compiles the test resources and runs the JUnit test suite. Note: Ensure that the EAR file location in the JUnit test suite file is the same as the EAR file location specified in the pom.xml file.
|
package
|
Compiles the BusinessEvents project and builds the EAR file at the location specified in the pom.xml file. The
|
install
|
Installs the BusinessEvents project's EAR file and pom.xml file into your Maven repository. |
deploy
|
Deploys the BusinessEvents project EAR and the project library into the remote repository.
To deploy the project library into a remote repository, you must first build the project library at the location specified by the
Specify the remote repository details in the project's pom.xml file and create |
| Phases | Description |
|---|---|
build-project-lib
|
Builds the project library (.projlib) for the BusinessEvents project.
The
|
install-project-lib
|
Installs the project library (.projlib) for the BusinessEvents project to your Maven repository.
|
| Phases | Description |
|---|---|
hot-deploy
|
Deploys the generated EAR file for the BusinessEvents application deployed on TIBCO Enterprise Administration Agent. All the earlier phases until the
install phases are run and the generated EAR file is deployed on the TIBCO Enterprise Administrator server specified in the
pom.xml file.
<teaConfig>
<teaUrl>http://localhost:8777</teaUrl>
<applicationName>FraudDetection</applicationName>
<username>admin</username>
<password>admin</password>
</teaConfig>You can skip the earlier phases by using the property Example: <disablePhases>bebuildear</disablePhases> Note:
|
| Phases | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
build-app-image
|
Builds the Docker image for the TIBCO BusinessEvents application. You can specify the following arguments that are required for the Docker image generation in the
Copy
Following are the descriptions for the tags used:
You can build the Docker image either by using an existing TIBCO BusinessEvents installation (BE_HOME) from your computer or using the software installer of TIBCO BusinessEvents and other required products. The Docker image generated by using software installers is of smaller size in comparison to the Docker image generated using your TIBCO BusinessEvents installation.
See "Building BusinessEvents Application Docker Image" section in the TIBCO BusinessEvents Cloud Deployment Guide for more details about the arguments required for Docker. Note: In the macOS platform, ensure to provide the system
PATH as an environment variable in the Run configuration. In TIBCO BusinessEvents Studio, right-click the project name and select
. In the
Environment
tab, add a variable
PATH and provide its value the same as $PATH environment variable value from the system.
|
||||||||||||||||||||||||||||||
docker-install
|
Runs all the earlier phases for the Dockerfile and installs the BusinessEvents project's EAR file and pom.xml file into your Maven (.m2) repository.
|
||||||||||||||||||||||||||||||
docker-deploy
|
Creates a tag for the generated application image and deploys the tagged image to the specified Docker registry. All the previous phases are run and then the
docker-deploy phase is run.
Note: For deploying to Amazon Web Services (AWS), you must have the AWS Command Line Interface (CLI) installed and configured on the system.
You can specify the following arguments that are required for deploying the application Docker image in the
Copy |