[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#896708: ITP: maven-cache-cleanup -- Utility to purge timestamped snapshots from Maven repositories



>>>>> Emmanuel Bourg <ebourg@apache.org>:

> Package: wnpp
> Severity: wishlist
> Owner: Emmanuel Bourg <ebourg@apache.org>

> * Package name    : maven-cache-cleanup
>   Version         : 1.0.4
>   Upstream Author : Yuri Nadestin
> * URL             : https://github.com/nadestin/tools
> * License         : Apache-2.0
>   Programming Lang: Java
>   Description     : Utility to purge timestamped snapshots from Maven repositories

> Maven 3 dropped support for non-unique snapshot versions, which had the
> side effect of filling up Maven caches on developer machines and on CI
> build hosts. The Maven Cache Cleanup utility scans a specified Maven cache
> directory for snapshot versions and deletes all but the latest version of
> the timestamped artifacts.

Hm... just a side observation: I ended up writing something similar
myself, a very simple one:
 https://github.com/steinarb/maven-repository-snapshot-pruner

I use it to prune snapshots from my own maven repository.

My entry level VPS (Virtual Private Server) in the cloud, wasn't big
enough to run nexus in addition to its other stuff. So I set up a simple
maven repository, using ftp to deploy to a directory structure, with
nginx serving up the same structure in HTTP.

And since what I'm mainly deploying to this maven repository is
snapshots, and what I want is just a single snapshot, I wrote the above
utility. 


Reply to: