Adding the Data Hub SDK Extension JAR File

If you plan to use the Data Hub SDK extension, download the JAR file and add it to the code repository.

Prerequisites

You downloaded the Data Hub SDK.

Procedure

  1. Extract the datahub-extension-sdk-<version>.jar file from the Data Hub SDK.
  2. Move the datahub-extension-sdk-<version>.jar file to the datahub/config/lib/ folder in your code repository.
  3. Update the custom extension pom.xml with the path to the file.
    1. Open the datahub/config/lib folder.
    2. Open the pom.xml file and add <systemPath> with the path to the JAR file.

      Example

      The format is <systemPath>${basedir}/../config/lib/<jar_filename></systemPath>.

      <dependencies>
      	<dependency>
      		<artifactId>datahub-extension-sdk</artifactId>
      		<groupId>com.hybris.datahub</groupId>
      		<version>${datahub.version}</version>
      		<scope>system</scope>
      		<systemPath>${basedir}/../config/lib/datahub-extension-sdk-${datahub.version}.jar</systemPath>
      	</dependency>