Like for Archiva : There are 2 parameters daysOld and retentionCount.
It search for all ".pom" in the local repository (The path of the
repository is configurable).
If the pom is older than daysOld (in the artifact name), the pom and all
file with the same name (minus the suffix) are deleted to let only the
last <retentionCount> versions.
-SNAPSHOT.pom are ignored (maybe this should be optional).
At this time I develop it entirely, but I will extract classes from
archiva (archiva-core-consumers) to also be able to delete released
snapshots.
This plugin is very useful for all developers and for continuous
integration server to not let the repository grows.
Benoit
Wayne Fay wrote:
Can you tell us more about your plugin? How does it decide which
snapshots to remove?
Wayne
On 4/28/08, Benoit Decherf <[EMAIL PROTECTED]> wrote:
Benjamin Bentmann wrote:
Benoit Decherf wrote:
I wrote a plugin to clean the local repository.
How does this plugin relate to the existing goals
dependency:purge-local-repository
and
buildhelper:remove-project-artifact
?
These 2 plugins works on a specific project (to remove the artifacts, and to
remove all snapshots dependencies).
I need a plugin that remove all old snapshots from the local repository
(like archiva do).
How can I submit it ?
Checkout the article "Submitting a Plugin" [2] on the Mojo website.
Before creating the issue, I should ask for it in this mailing list. So, are
you agree to create this plugin ?
Benoit
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email