# Maven repository

Source: https://diskcity.app/folders/java-m2

**Check before deleting.** Usually, but look first. Maven downloads dependencies again on the next build.

## What it is

Maven repository is data your Mac or an app can rebuild. It lives at ~/.m2/repository.

## Where it is

- `~/.m2/repository`

## How big is it?

```sh
du -sh "$HOME/.m2/repository"
```

## How to remove it

1. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
2. Move its contents to the Trash.
3. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity labels it as rebuildable and removes it only when you approve.
