> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Java SDK Installation

> How to build and use the preview Java SDK

<Note type="warning">
  **SDKs are in very early alpha**: We're working as hard as we can to get them into a stable state. Please bear with us as we iterate rapidly.
</Note>

<Note type="warning">This package is not yet published to Maven Central.</Note>

## Requirements

* Java 17+
* Maven 3.8+

## Build locally

```bash theme={null}
cd packages/sdk/sdk-java
mvn -DskipTests package
```

This produces `target/sdk-java-0.0.0-local.jar`.

## Use in your project

Install the generated jar into your local Maven cache:

```bash theme={null}
mvn install:install-file \
  -Dfile=target/sdk-java-0.0.0-local.jar \
  -DgroupId=ai.stats \
  -DartifactId=sdk-java \
  -Dversion=0.0.0-local \
  -Dpackaging=jar
```

Then add it as a dependency in your app `pom.xml`:

```xml theme={null}
<dependency>
  <groupId>ai.stats</groupId>
  <artifactId>sdk-java</artifactId>
  <version>0.0.0-local</version>
</dependency>
```
