# Setup Kotlin DataFrame in Maven

> For the complete documentation index, see [llms.txt](https://kotlin.github.io/dataframe/llms.txt).

Kotlin DataFrame can be added as a usual Maven dependency to your Kotlin project.

## Create a Kotlin project

1. In IntelliJ IDEA, select File | New | Project.

2. In the panel on the left, select New Project.

3. Name the new project and change its location, if necessary.

> **Tip:**
> Select the Create Git repository checkbox to place the new project under version control. You can enable this later at any time.

4. From the Language list, select Kotlin.

5. Select the Maven build system.

6. From the JDK list, select the [JDK](https://www.oracle.com/java/technologies/downloads/) that you want to use in your project. The minimum supported version is JDK 8.

* If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory.

* If you don't have the necessary JDK on your computer, select Download JDK.

7. Select the Add sample code checkbox to create a file with a sample `"Hello World!"` application.

8. Click Create.

You have successfully created a project with Maven.

## Setup Kotlin DataFrame

### 1. Add the plugin

[Kotlin DataFrame Compiler Plugin](compiler-plugin.html) enables automatic generation of [extension properties](extensionpropertiesapi.html) and updates [data schemas](schemas.html) on-the-fly in Maven projects, making development with Kotlin DataFrame faster, more convenient, and fully type- and name-safe.

> **Note:**
> Requires Kotlin 2.2.20-Beta1 or higher and IntelliJ IDEA 2025.3 or higher.

To enable the plugin in your Maven project, update the `<kotlin-maven-plugin>` in the `<plugin>` section of your `pom.xml`:

```XML
<plugin>
    <artifactId>kotlin-maven-plugin</artifactId>
    <groupId>org.jetbrains.kotlin</groupId>
    <version>2.4.21</version>

    <configuration>
        <!-- Specify the Kotlin-dataframe plugin -->
        <compilerPlugins>
            <plugin>kotlin-dataframe</plugin>
        </compilerPlugins>
    </configuration>

    <!-- Add the Kotlin-dataframe plugin dependency -->
    <dependencies>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-maven-dataframe</artifactId>
            <version>2.4.21</version>
        </dependency>
    </dependencies>
</plugin>
```

### 2. Add the library dependency

In your Maven build file (`pom.xml`), add the Kotlin DataFrame library as a dependency:

```XML
<dependency>
    <groupId>org.jetbrains.kotlinx</groupId>
    <artifactId>dataframe</artifactId>
    <version>1.0.0-rc02</version>
</dependency>
```

This will add [general Kotlin DataFrame dependency](modules.html#dataframe-general), i.e., [core API and implementation](modules.html#dataframe-core) as well as all [IO modules](modules.html#io-modules) (excluding [experimental ones](modules.html#experimental-modules)).

You can add only the [core API module](modules.html#dataframe-core) and the specific [modules](modules.html) you need.

## Hello World

Let’s create your first [DataFrame](dataframe.html) — a simple "Hello, World!" style example:

```KOTLIN
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
import org.jetbrains.kotlinx.dataframe.api.print

fun main() {
    val df = dataFrameOf(
        "name" to listOf("Alice", "Bob"),
        "age" to listOf(25, 30)
    )

    df.print()
}
```

## Project Example

See [the Maven example project with the Kotlin DataFrame Compiler Plugin enabled on GitHub](https://github.com/Kotlin/dataframe/tree/master/examples/projects/kotlin-dataframe-plugin-maven-example).

You can also [download this project](https://github.com/Kotlin/dataframe/raw/example-projects-archives/kotlin-dataframe-plugin-maven-example.zip).

## Next Steps

* Once you’ve set up Kotlin DataFrame in your Maven project, continue with the [Quickstart Guide](quickstart.html) to learn the basics of working with Kotlin DataFrame.

* Explore [detailed guides and real-world examples](guides-and-examples.html) to see how Kotlin DataFrame helps with different data tasks.

* Check out various [IDEA examples using Kotlin DataFrame on GitHub](https://github.com/Kotlin/dataframe/tree/master/examples).

* Learn more about the [compiler plugin](compiler-plugin.html).

