Using External Custom XPath Function with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven

Follow the steps below to use external custom xpath function with ActiveMatrix BusinessWorks:

    Procedure
  1. Create a custom xpath function project with ActiveMatrix BusinessWorks. For more information, see "Creating Custom xpath Functions" in ActiveMatrix BusinessWorks Bindings and Palette Reference .
  2. Right-click on the created project and select Generate POM for CXF Project. This mavenizes the project and generates a pom.xml for the custom xpath function project.

  3. Create a new Run or Debug Configuration for Maven. Select the custom xpath function project and execute the clean install goal. This installs the custom xpath function project in local .m2 repository.
  4. Open a new eclipse workspace. Create a new application project and to generate the POM for the application, right-click the application and the Generate POM for Application.

  5. Open the Application Module pom.xml and add the custom xpath function project dependency, which is present in local maven repository, and save the pom.xml.

    The CXF project is displayed in the Project Explorer.

    Note: The icon changes for the custom xpath function project indicating the project is referenced and is not in workspace.
  6. To start using the custom functions in the BW project, right-click the CXF project and select Install CXF Project option.

  7. The BW application must have unit tests defined. For more information, see Unit Testing.

  8. Create a new maven run configuration. Select the BW application parent project as base directory.
  9. Provide the maven goal clean Test.
  10. To generate the EAR, provide maven goal clean package.
Note: The tibco.home and bw.home properties must be provided in the pom.xml application.