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/16 18:59:33 UTC

Is there a "mvn" command to clean the local repo?

All,

Is there a mvn command that clean the local repo?

Thanks.

B.

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


Re: Is there a "mvn" command to clean the local repo?

Posted by Tomasz Pik <to...@gmail.com>.
On 4/16/07, Baz <ba...@gmail.com> wrote:
> Davis,
>
> Thanks for replying.
>
> After I reviewed the webpage, I wonder how i can delete/refresh one
> single directory... for example, "com" directory under the local repo.
> There is only "exclude" but no "include".

With purge-local-repository goal you may refresh (delete and then
download) dependencies for your project (including transitive
dependencies). With resolutionFuzziness you may also 'expand'
'scope' of deletion (see
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html#resolutionFuzziness).
But this will work only for dependencies listed in your project (pom.xml).
So - it's not designed for removing 'whole repository' but only for those
parts of repository, which are required for your project.
And that's why there's no 'include' - you're 'including artifacts
for deletion' by adding them as dependencies to your project...
For removing whole 'com' tree in local repo simple filesystem operation
will work better IMHO.

Regards,
Tomek


> B.
>
> On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> >
> > see purge-local-repository goal
> >
> >
> >
> > On 4/16/07, Baz <ba...@gmail.com> wrote:
> > >
> > > All,
> > >
> > > Is there a mvn command that clean the local repo?
> > >
> > > Thanks.
> > >
> > > B.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Zeno Consulting, Inc.
> > http://www.zenoconsulting.biz
> > 248.894.4922 phone
> > 313.884.2977 fax
> >
>
> ---------------------------------------------------------------------
> 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: Is there a "mvn" command to clean the local repo?

Posted by Wayne Fay <wa...@gmail.com>.
This is a fairly new mojo, so it may not have all the functionality
you require/desire. In that case, you are free to edit the code to add
what you need etc, then contribute it back to Maven so it can be
incorporated in a future release.

Wayne

On 4/16/07, Baz <ba...@gmail.com> wrote:
> Davis,
>
> Thanks for replying.
>
> After I reviewed the webpage, I wonder how i can delete/refresh one
> single directory... for example, "com" directory under the local repo.
> There is only "exclude" but no "include".
>
> B.
>
> On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> >
> > see purge-local-repository goal
> >
> >
> >
> > On 4/16/07, Baz <ba...@gmail.com> wrote:
> > >
> > > All,
> > >
> > > Is there a mvn command that clean the local repo?
> > >
> > > Thanks.
> > >
> > > B.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Zeno Consulting, Inc.
> > http://www.zenoconsulting.biz
> > 248.894.4922 phone
> > 313.884.2977 fax
> >
>
> ---------------------------------------------------------------------
> 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: Is there a "mvn" command to clean the local repo?

Posted by Baz <ba...@gmail.com>.
Yeah thats what i am doing right now :p

Thanks.

A.

On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> well...you can do it the quick-n-dirty way, and just manually delete
> everything under .m2/repository/com/* (or subdirs that you want to refresh)
>
> --davis
>
>
> On 4/16/07, Baz <ba...@gmail.com> wrote:
> >
> > Davis,
> >
> > Thanks for replying.
> >
> > After I reviewed the webpage, I wonder how i can delete/refresh one
> > single directory... for example, "com" directory under the local repo.
> > There is only "exclude" but no "include".
> >
> > B.
> >
> > On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> > > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> > >
> > > see purge-local-repository goal
> > >
> > >
> > >
> > > On 4/16/07, Baz <ba...@gmail.com> wrote:
> > > >
> > > > All,
> > > >
> > > > Is there a mvn command that clean the local repo?
> > > >
> > > > Thanks.
> > > >
> > > > B.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Zeno Consulting, Inc.
> > > http://www.zenoconsulting.biz
> > > 248.894.4922 phone
> > > 313.884.2977 fax
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

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


Re: Is there a "mvn" command to clean the local repo?

Posted by Davis Ford <da...@gmail.com>.
well...you can do it the quick-n-dirty way, and just manually delete
everything under .m2/repository/com/* (or subdirs that you want to refresh)

--davis


On 4/16/07, Baz <ba...@gmail.com> wrote:
>
> Davis,
>
> Thanks for replying.
>
> After I reviewed the webpage, I wonder how i can delete/refresh one
> single directory... for example, "com" directory under the local repo.
> There is only "exclude" but no "include".
>
> B.
>
> On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> > http://maven.apache.org/plugins/maven-dependency-plugin/index.html
> >
> > see purge-local-repository goal
> >
> >
> >
> > On 4/16/07, Baz <ba...@gmail.com> wrote:
> > >
> > > All,
> > >
> > > Is there a mvn command that clean the local repo?
> > >
> > > Thanks.
> > >
> > > B.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Zeno Consulting, Inc.
> > http://www.zenoconsulting.biz
> > 248.894.4922 phone
> > 313.884.2977 fax
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax

Re: Is there a "mvn" command to clean the local repo?

Posted by Baz <ba...@gmail.com>.
Davis,

Thanks for replying.

After I reviewed the webpage, I wonder how i can delete/refresh one
single directory... for example, "com" directory under the local repo.
There is only "exclude" but no "include".

B.

On 4/16/07, Davis Ford <da...@gmail.com> wrote:
> http://maven.apache.org/plugins/maven-dependency-plugin/index.html
>
> see purge-local-repository goal
>
>
>
> On 4/16/07, Baz <ba...@gmail.com> wrote:
> >
> > All,
> >
> > Is there a mvn command that clean the local repo?
> >
> > Thanks.
> >
> > B.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Zeno Consulting, Inc.
> http://www.zenoconsulting.biz
> 248.894.4922 phone
> 313.884.2977 fax
>

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


Re: Is there a "mvn" command to clean the local repo?

Posted by Davis Ford <da...@gmail.com>.
http://maven.apache.org/plugins/maven-dependency-plugin/index.html

see purge-local-repository goal



On 4/16/07, Baz <ba...@gmail.com> wrote:
>
> All,
>
> Is there a mvn command that clean the local repo?
>
> Thanks.
>
> B.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Zeno Consulting, Inc.
http://www.zenoconsulting.biz
248.894.4922 phone
313.884.2977 fax