Data Source Toolkit Guide > Data Source Configuration > Configuring Extension Adapters for Maven
 
Configuring Extension Adapters for Maven
For Maven to compile successfully, you need to modify an XML file and Maven command arguments to match the release and patch level in which the extension adapter is being created.
The example shown with the mvn command below is for 8.4.0. In this scenario, a file named csext-0104.jar is present under <TDV_install_dir>\apps\extension\lib.
To configure extension adapters for Maven
1. Go to this directory:
\apps\extension\examples\adapters\postgres-example-adapter-<version>\
 
2. If necessary, replace 0.0.0-SNAPSHOT with the TDV version number (for example, 8.4.0) in three places in the pom.xml file, as highlighted in bold below:
<?xml version="1.0" encoding="UTF-8"?>
...
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
   <modelVersion>4.0.0</modelVersion>
   <name>Modules/Server - Postgres Extension Adapter Example</name>
   <artifactId>postgres-example-adapter-8.4.0</artifactId>
   <groupId>com.cisco.cdvs</groupId>
   <version>8.4.0-SNAPSHOT</version>
 - <build>
      . . .
 
      . . .
   </build>
 - <dependencies>
    - <dependency>
         <groupId>com.cisco.cdvs</groupId>
         <artifactId>server-extension</artifactId>
         <version>8.4.0-SNAPSHOT</version>
      </dependency>
   </dependencies>
</project>
 
3. Run the following command to install the jar file and create the adapter package:
mvn install:install-file -Dfile=../../../lib/csext-0104.jar -DgroupId=com.cisco.cdvs -DartifactId=server-extension -Dversion=8.4.0-SNAPSHOT -Dpackaging=jar
mvn clean package