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.
- Procedure
- In the command line, navigate to the Maven folder in the TIBCO BusinessEvents installation at BE_HOME/maven/bin.
- Run the following command:
be-maven-pom-generator -p <projectPath> -g <groupId> -a <artifactId> -v <version>
The be-maven-pom-generator
Utility ParametersOptions Description -p
Absolute path to the TIBCO BusinessEvents Studio project directory. The POM file is generated using this project. -g
A unique group ID amongst an organization. For example, all core Maven artifacts do live under the group ID org.apache.maven. This is added in the POM file with the
<groupId>
tag. For example,<groupId>org.apache.maven</groupId>
-a
A unique artifact ID that identifies the project or artifact in the group. This is added in the POM file with the
<artifactId>
tag. For example,<artifactId>maven-core</artifactId>
-v
Version number of the artifact in the group. This is added in the POM file with the
<version>
tag. For example,<version>3.3.9</version>
For example, to generate a POM file for the FraudDetection example, run the following command:be-maven-pom-generator -p BE_HOME/examples/standard/FraudDetection/FraudDetection -g com.tibco.be -a fd -v 0.0.1
A POM file (pom.xml) is generated for the FraudDetection project at the BE_HOME/examples/standard/FraudDetection/FraudDetection location.
See BusinessEvents Application POM File for edits that may be required in the generated pom.xml file as per your requirement.