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
  1. 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.
  2. Create a sample BW application using the custom Xpath function created in Step 1.
  3. In the Project Explorer, ensure that the custom xpath function project is added in the Includes application.
  4. 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>
  5. Add the cxf common extension dependency in the custom XPath function pom.xml project.
  6. <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.
  7. Create a maven run configuration. Select the BW application parent project as the base directory.
  8. Provide the maven goal clean Test.
  9. To generate the EAR, provide the Maven goal clean package.

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