On 8/31/06, jim stafford <[EMAIL PROTECTED]> wrote:
Is there any way to limit the number of SNAPSHOTs that accumulate in the
SNAPSHOT repository using only Maven?

I realize I can use shell script pruning tools and cron to help reduce
the clutter, but I was wondering if there was a way of getting the
deploy plugin to do the work. It looks like each deploy adds another
version of the SNAPSHOT without replacing the previous versions.

You want those snapshots kept so that you can reproduce your builds.
But given that snapshots are development builds you could clean them
up, but I'm not sure it is worth that much effort. Disk space is cheap
right?

You should have two repositories, one for release artifacts and one
for snapshot artifacts.
So theoretically, if you have just released your application you could
just delete the snapshot repository, but if more than one project is
using that repository deleting would be a bad thing (tm).

The other problem you might run into if you delete selected files is
that the metadata would refer to things that no longer exist.

Alternatively, if you just want to keep one snapshot you can use the
uniqueVersion, see
http://www.nabble.com/forum/ViewPost.jtp?post=5971992&framed=y

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

Reply via email to