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.

The POM file generator utility automatically adds an entry for each of the project library, found in the BusinessEvents application, in the generated pom.xml file as a dependency. To resolve this dependency you need to install the project library (.projlib) to your repository. The parameters (groupId, atifactId, and version) for this utility must match the dependency parameters specified in the POM file or vice versa.

Internally, the utility uses the mvn install command to install the project library to your repository.

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:
    install-projlib -p <projlib> -g <groupid> -a <artifactid> -v <version>
    The install-projlib Utility Parameters
    Options Description
    -pAbsolute path to the project library (.projlib) file for the BusinessEvents 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>com.tibco.be</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>myprojlib</artifactId>

    -vVersion number of the artifact in the group.

    This is added in the POM file with the <version> tag. For example,

    <version>0.0.1</version>