local repository purge plugin

View: New views
10 Messages — Rating Filter:   Alert me  

local repository purge plugin

by Benoit Decherf-2 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

I wrote a plugin to clean the local repository. I think that this plugin
could be useful for a lot of people.
How can I submit it ?

Thanks,
Benoit



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: local repository purge plugin

by Benjamin Bentmann :: Rate this Message:

| View Threaded | Show Only this Message

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
?

> How can I submit it ?

Checkout the article "Submitting a Plugin" [2] on the Mojo website.


Benjamin


[0]
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
[1]
http://mojo.codehaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html
[2] http://mojo.codehaus.org/development/submitting-a-plugin.html


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: local repository purge plugin

by Benoit Decherf-2 :: Rate this Message:

| View Threaded | Show Only this Message

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



Re: local repository purge plugin

by Wayne Fay :: Rate this Message:

| View Threaded | Show Only this Message

Can you tell us more about your plugin? How does it decide which
snapshots to remove?

Wayne

On 4/28/08, Benoit Decherf <decherfb@...> 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



Re: local repository purge plugin

by Dan Tran :: Rate this Message:

| View Threaded | Show Only this Message

cool plugin, i can get my developer to run this mojo once a while to
clean all the old snapshot.

This mojo may be a candidate for maven-repository-plugin's new feature
at apache.  http://maven.apache.org/plugins/maven-repository-plugin/



-D

On Mon, Apr 28, 2008 at 7:46 PM, Wayne Fay <waynefay@...> wrote:

> Can you tell us more about your plugin? How does it decide which
>  snapshots to remove?
>
>  Wayne
>
>
>
>  On 4/28/08, Benoit Decherf <decherfb@...> 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
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: local repository purge plugin

by Benoit Decherf-2 :: Rate this Message:

| View Threaded | Show Only this Message

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 decherfb@... 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


  


Re: local repository purge plugin

by Dan Tran :: Rate this Message:

| View Threaded | Show Only this Message

Any progress on this? :-)

-D

On Tue, Apr 29, 2008 at 1:17 AM, Benoit Decherf <decherfb@...> wrote:

> 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 <decherfb@...> 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
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: local repository purge plugin

by Wendy Smoak-3 :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, May 9, 2008 at 3:04 PM, Dan Tran <dantran@...> wrote:

> Any progress on this? :-)

ping. :)  Benoit, this sounds very useful!  Submitting it here would
be a good start, and then as Dan mentioned it might make more sense in
the Repository plugin.

Local repo size is also a problem on CI servers-- we're tracking a
related issue in Continuum:
http://jira.codehaus.org/browse/CONTINUUM-1693

--
Wendy

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: local repository purge plugin

by Benoit Decherf-2 :: Rate this Message:

| View Threaded | Show Only this Message

Where should I submit the code ? directly to the mailing list ?

I don't use the code of archiva for the moment.

Benoit

Wendy Smoak wrote:
On Fri, May 9, 2008 at 3:04 PM, Dan Tran dantran@... wrote:

  
Any progress on this? :-)
    

ping. :)  Benoit, this sounds very useful!  Submitting it here would
be a good start, and then as Dan mentioned it might make more sense in
the Repository plugin.

Local repo size is also a problem on CI servers-- we're tracking a
related issue in Continuum:
http://jira.codehaus.org/browse/CONTINUUM-1693

  


Re: local repository purge plugin

by Benjamin Bentmann :: Rate this Message:

| View Threaded | Show Only this Message

Benoit Decherf wrote:

> Where should I submit the code ?

To the component "_Plugin Submission" in JIRA, please see [0] for details.


Benjamin


http://mojo.codehaus.org/development/submitting-a-plugin.html

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email