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 TIBCO BusinessWorks Container Edition. For more information, see "Creating Custom XPath Functions" in TIBCO BusinessWorks Container Edition 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.xml
project must list down all the modules as below:<modules> <module>../CXFDemo</module> <module>../CXFTest.module</module> <module>../CXFTest</module> </modules>
- Add the
cxf
common extension dependency in the custom XPath functionpom.xml
project. - 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