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.

Prerequisites

TIBCO BusinessEvents Maven plug-in is set up in your repository. See Setting Up TIBCO BusinessEvents Maven Plug-in for more details.

Procedure

  1. Open the BusinessEvents project in the BusinessEvents studio.
  2. In the Project Explorer pane, perform either of the following action: .
    • Right-click on the project name and select Generate Maven POM File.
    • Select the project and click from the menu - Project > Generate Maven POM File.
    The Generate POM for Application window is displayed.
  3. In the Generate POM for Application window, enter the details required for the project POM file and click Apply to save the POM configuration.
    Field Description
    Group ID 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>
    Artifact ID 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>
    Version 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>
  4. Click OK to generate the POM file for the BusinessEvents project.

Result

The POM file (pom.xml) is created under the BusinessEvents project. Open the POM file in BusinessEvents studio or any other XML editor to enter further details about the POM file (if required). Refer to the Apache Maven documentation at https://maven.apache.org for more detailed information on POM.

What to do next

Open the generated POM file in the studio, if you see the Plugin execution not covered by lifecycle configuration errors in the Problems view, you can use the Quick Fix feature to resolve them. The figure Sample Error for the POM File in BusinessEvents Studio displays a sample error that you might encounter when you open the POM file for the first time in TIBCO BusinessEvents Studio.

In the Problems view, right click on the error and select Quick Fix.

In the Quick Fix wizard, select the problems to fix and select one of the suggested fixes, and click Finish.

Sample Error for the POM File in BusinessEvents Studio