---
title: Configuration for Maven
short_title: Maven
description: Configure the Maven build tool for Deeplearning4j.
category: Configuration
weight: 2
---
## Configuring the Maven build tool
You can use Deeplearning4j with Maven by adding the following to your `pom.xml`:
```xml
org.deeplearning4j
deeplearning4j-core
{{ page.version }}
```
The instructions below apply to all DL4J and ND4J submodules, such as `deeplearning4j-api`, `deeplearning4j-scaleout`, and ND4J backends.
## Add a backend
DL4J relies on ND4J for hardware-specific implementations and tensor operations. Add a backend by pasting the following snippet into your `pom.xml`:
```xml
org.nd4j
nd4j-native-platform
{{ page.version }}
```
You can also swap the standard CPU implementation for [GPUs](./deeplearning4j-config-gpu-cpu).