Skip to main content

15.1.1 Installation

Prerequisites

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

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>1.0.14.1</version>
</dependency>

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

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>