Skip to main content

15.1.1 Installation

15.1.1.1 Prerequisites

  • Java ≥ 11 (latest LTS release recommended)
  • Maven command-line tools

15.1.1.2 Installing the SDK

Step 1 — Install the SDK into your local Maven repository:

cd idmp-java-sdk
mvn install -DskipTests

Step 2 — Add the dependency to your project's pom.xml

<dependency>
<groupId>com.taosdata</groupId>
<artifactId>idmp-sdk</artifactId>
<version></version>
</dependency>

15.1.1.3 Verifying the Installation

Add the following import to your project. If it compiles without errors, the SDK is installed correctly:

import org.openapitools.client.ApiClient;
// If this compiles, the SDK is installed correctly

15.1.1.4 Private Repository Setup

If your development environment has no internet access, host the SDK in a private repository:

Upload the JAR to your private Maven repository (Nexus, Artifactory, etc.), then configure the repository URL in pom.xml:

<repositories>
<repository>
<id>private-repo</id>
<url>https://your-maven-repo/repository/maven-releases/</url>
</repository>
</repositories>