Apache Maven Integration
You can use Apache Maven for building and deploying TIBCO BusinessEvents applications like other Java projects in your organization. This lets you to have a uniform build system across your organization.
You can use Maven to get the artifacts from different repositories that could be shared across different locations. Also, if you are already using Apache Maven for other Java projects, similar commands can be used for TIBCO BusinessEvents projects.
Components
TIBCO BusinessEvents provides a TIBCO BusinessEvents Maven plug-in to integrate Apache Maven with TIBCO BusinessEvents. TIBCO BusinessEvents also provides scripts to install the BusinessEvents Maven plug-in and utility to generate the Maven Project Object Model (POM) file. The JAR file for the plug-in and the utilities, which helps in integration, are located at BE_HOME/maven/bin. For more information on these files, see table BusinessEvents Maven Plug-in Files and Utilities.
Files | Description |
---|---|
be-maven-plugin-<version>.jar | The BusinessEvents Maven plug-in JAR file that must be installed to your local Maven (.m2) repository to set up the BusinessEvents Maven plug-in. You can use the
install-be-maven-plugin utility to do that.
For more information on how to install the BusinessEvents Maven plug-in, see Setting Up TIBCO BusinessEvents Maven Plug-in. |
be-maven-pom-generator.exe | The utility to generate POM file for the specified BusinessEvents project.
For more information on how to use this utility, see Generating a Apache Maven POM File. |
be-maven-pom-generator.tra | The TRA file for the be-maven-pom-generator.exe utility. |
install-be-maven-plugin.bat | The utility to install the BusinessEvents Maven plug-in JAR file (be-maven-plugin-<version>.jar) to the local
.m2 repository in the Windows platform.
For more information on how to install the BusinessEvents Maven plug-in, see Setting Up TIBCO BusinessEvents Maven Plug-in. |
install-be-maven-plugin.sh | The utility to install the BusinessEvents Maven plug-in JAR file (be-maven-plugin-<version>.jar) to the local
.m2 repository in the Unix platform.
For more information on how to install the BusinessEvents Maven plug-in, see Setting Up TIBCO BusinessEvents Maven Plug-in. |
install-projlib.bat | The utility to install the existing project library (.projlib) for the BusinessEvents project to the local
.m2 repository in the Windows platform.
For more information on how to install the project library, see Installing The Project Library to Maven Repository. |
install-projlib.sh | The utility to install the existing project library (.projlib) for the BusinessEvents project to the local
.m2 repository in the Unix platform.
For more information on how to install the project library, see Installing The Project Library to Maven Repository. |
pom.xml | The POM file required for setting up the BusinessEvents Maven plug-in. The install-be-maven-plugin utility uses this file. |
- TIBCO 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. - Setting Up TIBCO BusinessEvents Maven Plug-in
TIBCO BusinessEvents Maven plug-in is packaged with TIBCO BusinessEvents installation. To run the maven commands, you must install the TIBCO BusinessEvents Maven plug-in to your Maven (.m2) repository. This is a one-time activity. - Generating a Apache Maven POM File
TIBCO BusinessEvents provides a utility be-maven-pom-generator to generate the POM file for the specified BusinessEvents project. The generated POM file is saved at the BusinessEvents project root level. - Generating the BusinessEvents Project POM File Using BusinessEvents Studio
TIBCO BusinessEvents studio provides option to generate the POM file for a BusinessEvents project. The generated POM file is saved at the BusinessEvents project's location. - BusinessEvents Application POM File
After the POM file for the BusinessEvents application is generated, you can edit the POM file with required parameters for building and deploying the BusinessEvents application. - Installing The Project Library to Maven Repository
If your BusinessEvents project contains the project library, then you can use the install-projlib utility to install the project library in your repository.