BusinessEvents Maven Plug-in Phases

TIBCO BusinessEvents Maven plug-in overrides the Apache Maven phases with respect to TIBCO BusinessEvents. Thus, executing 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 refers to the POM file of the BusinessEvents application for the required arguments. See BusinessEvents Application POM File for more details on the BusinessEvents application POM file.

You can make call to execute a Maven phase in the command prompt using the following syntax:
mvn <phase>
In a build lifecycle, the phases are executed sequentially to complete the build lifecycle. It means that whenever you call for a phase to execute in the lifecycle, all the phases before it are completed in sequence, and then the phase that you have called is executed. For example, you have called the install phase:
mvn install
In such cases, first the compile phase is executed, then the test phase is executed, then the package phase is executed, and finally the install phase is executed.

The following tables list (in sequence) all the phases available in the BusinessEvents Maven plug-in.

BusinessEvents Maven Plug-in Phases for Maven default Lifecycle
Phases Description
compile Compiles the BusinessEvents project and generates the EAR file at the location specified in the POM file.

The <earLocation> tag in the POM file, for the BusinessEvents application, specifies the location to store the generated EAR file.

test Runs BusinessEvents JUnit tests located in the BusinessEvents project (under the JavaSrc folder). The command search for the BusinessEvents JUnit tests matching the following file names:
  • **/Test*.java
  • **/*Test.java
  • **/*TestCase.java
Note: Ensure that the EAR file location in the JUnit test suit file is same as the EAR file location specified in the POM file.
package Compiles the BusinessEvents project, generates the EAR file, and run BusinessEvents JUnit tests located in the BusinessEvents project.
install Installs the BusinessEvents project EAR 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 remote repository, you must first build the project library at the location specified by the <projLibLocation> tag in the POM file.

Specify the remote repository details in the project's POM file and create $USER_HOME/.m2/settings.xml file for repository authorization.

BusinessEvents Maven Plug-in Phases for buildProjectLib Lifecycle
Phases Description
build-project-lib Builds the project library (.projlib) for the BusinessEvents project.

The <projLibLocation> tag in the POM file, for the BusinessEvents application, specifies the location to store the generated project library (.projlib) file.

install-project-lib Installs the project library (.projlib) for the BusinessEvents project to your Maven repository