Using External Custom XPath Function with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven
To use an external custom XPath function with TIBCO BusinessWorks Container Edition, perform the following steps:
- Procedure
- Create a custom XPath function project with TIBCO BusinessWorks Container Edition. For more information, see "Creating Custom XPath Functions" in TIBCO BusinessWorks Container Edition Bindings and Palette Reference.
- 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. - Create a Run or Debug Configuration for Maven. Select the custom Xpath function project and run the
clean install
goal. This installs the custom XPath function project in the local.m2
repository. - Open a new eclipse workspace. Create an application project and to generate the POM for the application, right-click the application and select Generate POM for Application.
-
Open the Application Module
pom.xml
and add the custom XPath function project dependency, which is present in the local Maven repository, and save thepom.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 the workspace. -
To start using the custom functions in the BW project, right-click the CXF project and select the Install CXF Project option.
-
The BW application must have unit tests defined. For more information, see Unit Testing.
- Create a maven run configuration. Select the BW application parent project as the base directory.
- Provide the maven goal
clean Test
. - To generate the EAR, provide the Maven goal
clean package
.