Skip to content

Commit d9abb08

Browse files
committed
MLR
1 parent ced24ed commit d9abb08

File tree

1 file changed

+35
-0
lines changed
  • content/en/blog/cstamas/2025/09/local-repository

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "Maven Local Repository"
3+
date: 2025-09-16T12:34:23+01:00
4+
draft: false
5+
authors: cstamas
6+
author: cstamas ([@cstamas](https://bsky.app/profile/cstamas.bsky.social))
7+
categories:
8+
- Blog
9+
tags:
10+
- maven
11+
projects:
12+
- Maven
13+
---
14+
15+
{{% pageinfo color="info" %}}
16+
17+
The topic is about Maven Local Repository. You know, that thing that some people insist on protecting from "pollution".
18+
19+
{{% /pageinfo %}}
20+
21+
## Where to start?
22+
23+
Maven Local Repository, as we know it, is a mish-mash of cache and staging (locally built and installed) artifacts.
24+
Hence, no matter how much you dislike it, it **is part of your "build context"**, as without it, you would have no build.
25+
26+
But, maybe we should tinker about stop using **global** local repository, and make it per-project instead?
27+
28+
Basically, this is what you already have, when you, as a good Maven Universe citizen use Mimir: Mimir
29+
offers **pure global cache**, and it lets you consider you local repository really just as a "local something"
30+
(mish-mash). If you nuke your local "something", you are still not condemned for endless cups of coffee ("while Maven
31+
downloads the Internet"), as you still have all you need locally, in Mimir global cache (for some it may involve some
32+
separation anxiety, but they should really get over it quickly).
33+
34+
We cannot get rid of it in Maven 4 timeframe (due Maven 3 compatibility), but as explained above, users can already
35+
achieve it. So, why not?

0 commit comments

Comments
 (0)