We have a build server for Maven builds. As usual, all newly found dependencies are drawn into the local Maven repository. This means that the local repository grows more and more over time, keeping a lot of old artifacts.
As we are fighting for every GB on the server (I always hear that storage space is cheap - but the people saying this have probably never worked in a large company, where you cannot just "buy a server" or "use the cloud"), we like to develop a strategy for tidying up the local repository:
- On the one hand, we want to keep the often used artifacts, so that "erase the local repository every Sunday" is not a good option.
- On the other hand, we need to delete old artifacts, especially old snapshots that are no longer in use.
Any solutions for this?