Using Custom Xpath Functions with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven
Follow the steps below to use custom xpath function with TIBCO ActiveMatrix BusinessWorks Plug-in for Maven:
- 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 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 cxf common extension dependency in custom xpath function
pom.xmlproject. - In the user home directory, create the bwutdev.properties file. For example,
C:\Users\<user>\bwutdev.properties. Add the xpath function project entry in that file. - Create a new maven run configuration. Select the BW application parent project as base directory.
- Provide the maven goal
clean Test. - To generate the EAR, provide 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
Note: From Maven plug-in 2.8.0 onwards, this is optional. The plug-in will generate the
dev.properties file. However, if needed, you can override same by providing bwutdev.properties file as mentioned above.
For example, if the CXFDemo is custom xpath function project then, file will include CXFDemo=bin, target/classes Note: The
tibco.home and bw.home properties must be provided in the pom.xml application.The BW application must have unit tests defined. For more information, see Unit Testing.
Subtopics