Using Custom Xpath Functions with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven
To use custom XPath function with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven, perform the following steps:
- Procedure
- Create a custom XPath function project with ActiveMatrix BusinessWorks. For more information, see "Creating Custom XPath Functions" in ActiveMatrix BusinessWorks Bindings and Palette Reference.
- Create a sample BW application using the custom Xpath function created in Step 1.
- In the Project Explorer, ensure that the custom xpath function project is added in the Includes application.
-
To generate the POM files, right-click the project and select Generate POM for application. The parent
pom.xmlproject must list down all the modules as below:<modules> <module>../CXFDemo</module> <module>../CXFTest.module</module> <module>../CXFTest</module> </modules>
- Add the
cxfcommon extension dependency in the custom XPath functionpom.xmlproject. - 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.
<dependencies>
<dependency>
<groupId>com.tibco.plugins</groupId>
<artifactId>com.tibco.xml.cxf.common</artifactId>
<version>${cxf.common.version}</version>
<scope>provided</scope>
</dependency>
<dependencies>
Note: Replace the
${cxf.common.version} with version available in the BW_HOME. For example, 1.3.400. The BW application must have unit tests defined. For more information, see Unit Testing.
Subtopics