I am not currently aware of any such "local repo cache snapshot
cleaning tool" in existence.

I know people have written (and emailed to this group) scripts for
cleaning up the local repo cache. I don't have a link right now to one
(search the list archive?), but as I recall it was a bash script,
could be mistaken though.

Wayne

On 4/22/08, Julien CARSIQUE <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there a way to purge old snapshots from local repository (like the
> archiva behavior "purge old snapshots" which allows to keep a chosen number
> of old artifacts) ?
> I would like this to remove from local repository all useless artifacts,
> which doesn't exactly mean the "old ones".
>
> I think we need to keep all versions, but for each SNAPSHOT version, only
> the latest one.
>
> Here's an example of what I have in my local repository :
>
>        julien$ ls -1
> ~/.m2/repository/org/nuxeo/ecm/platform/nuxeo-platform-usermanager-api/
>                5.1.0
>                5.1.1
>                5.1.2
>                5.1.2-20071120
>                5.1.2-20071129
>                5.1.2-20080107
>                5.1.2-20080109
>                5.1.2-SNAPSHOT
>                5.1.3-20080219
>                5.1.3-20080226
>                5.1.3-GA
>                5.1.3-RC
>                5.1.3-SNAPSHOT
>                5.1.3.1
>                5.1.3.2
>                5.1.4
>                5.1.4-SNAPSHOT
>                5.1.5-SNAPSHOT
>
>        julien$ ls -1
> ~/.m2/repository/org/nuxeo/ecm/platform/nuxeo-platform-usermanager-api/5.1.4-SNAPSHOT
>                maven-metadata-external_snapshot.xml
>                maven-metadata-local.xml
>                maven-metadata-nuxeo_snapshot.xml
>                maven-metadata-nuxeo_snapshot.xml.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080219.012435-17.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080219.012435-17.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080219.012435-17.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080219.012435-17.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080226.011540-22.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080226.011540-22.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080226.011540-22.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080226.011540-22.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080228.011745-24.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080228.011745-24.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080228.011745-24.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080228.011745-24.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080229.011714-25.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080229.011714-25.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080229.011714-25.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080229.011714-25.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080304.011527-29.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080304.011527-29.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080304.011527-29.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080304.011527-29.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080307.011549-30.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080307.011549-30.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080307.011549-30.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080307.011549-30.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080318.001215-35.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080318.001215-35.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080318.001215-35.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080318.001215-35.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50-sources.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50-sources.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50.jar
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50.jar.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50.pom
>
> nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50.pom.sha1
>
> nuxeo-platform-usermanager-api-5.1.4-SNAPSHOT-sources.jar
>
> nuxeo-platform-usermanager-api-5.1.4-SNAPSHOT.jar
>
> nuxeo-platform-usermanager-api-5.1.4-SNAPSHOT.pom
>
> How to delete everything in
> ~/.m2/repository/org/nuxeo/ecm/platform/nuxeo-platform-usermanager-api/5.1.4-SNAPSHOT
> but nuxeo-platform-usermanager-api-5.1.4-20080402.233422-50
>
> Thanks,
>
> --
> Julien CARSIQUE, Nuxeo (Paris, France)
> www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
> Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
> [EMAIL PROTECTED] | Tel: +33 1 40 33 79 87
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to