You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Baz <ba...@gmail.com> on 2007/04/09 18:14:07 UTC

Cleaning up the m2 repo?

All,

Is there a way to code the m2 goal so that it can clean specific parts
of the m2 repo? For example, delete m2/repository/com/aaa directory?
or even clean up everything?

Thanks.

B.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Cleaning up the m2 repo?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Yes, this has been released since 2.0-alpha-1 

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Monday, April 09, 2007 3:16 PM
To: Maven Users List
Subject: Re: Cleaning up the m2 repo?

This functionality is available in maven-dependency-plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repo
sitory-mojo.html

I'm not sure what release has this mojo, so you may need to use a
SNAPSHOT if it isn't available in a released version yet.

Wayne

On 4/9/07, R. Chase <rc...@real.com> wrote:
> It doesn't appear that there is anything in maven 2. The only thing I 
> could find was for maven 1.x. And that was the 
> "repository:delete-project" goal which you could delete something from

> the repo by group id and what not.
>
> You could build a plugin for this or even add an ant task to your 
> build process to handle this case.
>
>
>
> Ryan
>
> Phill Moran wrote:
> > You have tried mvn -clean right?
> >
> > -----Original Message-----
> > From: Baz [mailto:baztheman@gmail.com]
> > Sent: April 9, 2007 12:14 PM
> > To: Maven Users List
> > Subject: Cleaning up the m2 repo?
> >
> > All,
> >
> > Is there a way to code the m2 goal so that it can clean specific 
> > parts of the m2 repo? For example, delete m2/repository/com/aaa
directory?
> > or even clean up everything?
> >
> > Thanks.
> >
> > B.
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Cleaning up the m2 repo?

Posted by Wayne Fay <wa...@gmail.com>.
This functionality is available in maven-dependency-plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

I'm not sure what release has this mojo, so you may need to use a
SNAPSHOT if it isn't available in a released version yet.

Wayne

On 4/9/07, R. Chase <rc...@real.com> wrote:
> It doesn't appear that there is anything in maven 2. The only thing I
> could find was for maven 1.x. And that was the
> "repository:delete-project" goal which you could delete something from
> the repo by group id and what not.
>
> You could build a plugin for this or even add an ant task to your build
> process to handle this case.
>
>
>
> Ryan
>
> Phill Moran wrote:
> > You have tried mvn -clean right?
> >
> > -----Original Message-----
> > From: Baz [mailto:baztheman@gmail.com]
> > Sent: April 9, 2007 12:14 PM
> > To: Maven Users List
> > Subject: Cleaning up the m2 repo?
> >
> > All,
> >
> > Is there a way to code the m2 goal so that it can clean specific parts of the m2
> > repo? For example, delete m2/repository/com/aaa directory?
> > or even clean up everything?
> >
> > Thanks.
> >
> > B.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Cleaning up the m2 repo?

Posted by "R. Chase" <rc...@real.com>.
It doesn't appear that there is anything in maven 2. The only thing I 
could find was for maven 1.x. And that was the 
"repository:delete-project" goal which you could delete something from 
the repo by group id and what not. 

You could build a plugin for this or even add an ant task to your build 
process to handle this case.



Ryan

Phill Moran wrote:
> You have tried mvn -clean right? 
>
> -----Original Message-----
> From: Baz [mailto:baztheman@gmail.com] 
> Sent: April 9, 2007 12:14 PM
> To: Maven Users List
> Subject: Cleaning up the m2 repo?
>
> All,
>
> Is there a way to code the m2 goal so that it can clean specific parts of the m2
> repo? For example, delete m2/repository/com/aaa directory?
> or even clean up everything?
>
> Thanks.
>
> B.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Cleaning up the m2 repo?

Posted by Phill Moran <pj...@rogers.com>.
You have tried mvn -clean right? 

-----Original Message-----
From: Baz [mailto:baztheman@gmail.com] 
Sent: April 9, 2007 12:14 PM
To: Maven Users List
Subject: Cleaning up the m2 repo?

All,

Is there a way to code the m2 goal so that it can clean specific parts of the m2
repo? For example, delete m2/repository/com/aaa directory?
or even clean up everything?

Thanks.

B.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org