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.

Before you beginTIBCO BusinessEvents Maven plug-in is set up in your repository. See Setting Up TIBCO BusinessEvents Maven Plug-in for more details.
    Procedure
  1. In the command line, navigate to the Maven folder in the TIBCO BusinessEvents installation at BE_HOME/maven/bin.
  2. Run the following command:
    be-maven-pom-generator  -p <projectPath> -g <groupId> -a <artifactId> -v <version>
    The be-maven-pom-generator Utility Parameters
    Options 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>

    -aA 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>

    -vVersion 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.

What to do next

See BusinessEvents Application POM File for edits that may be required in the generated pom.xml file as per your requirement.