Skip to content

Maven repository

Last updated 1 November 2026

What it is, where it lives on your Mac, and whether it’s safe to delete.

Check before deleting

Usually, but look first. Maven downloads dependencies again on the next build.

Where it is

~/.m2/repository

Is it safe to delete?

Usually, but look first. Maven downloads dependencies again on the next build.

How big is it?

In Terminal, this shows its size without changing anything:

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.