Purging everything is the only way to ensure that your repository is
properly populated. On all our instances, I wipe all the local repos
(each build has its own) nightly. Since I have the CI sitting behind
Nexus, I don't care that I dump the entire repo since it's completely
testing a fresh setup at least once a day.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Baptiste
MATHUS
Sent: Sunday, December 21, 2008 9:38 AM
To: Maven Users List
Subject: Re: Cleaning local repository

Reminds me of a recent discussion about googling...
Did you have a look at the provided link before asking your question?
See
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repo
sitory-mojo.html#exclude

Btw, I don't really understand why your CI server should delete all
those
artifacts before building. I have also setup a CI system and don't see
why
it could be useful. In fact, as all the artifacts are downloaded from
the
corporate maven repository manager, purging everything locally is just
likely going to be a local-bandwidth-waste.

Cheers

2008/12/21 javax <[email protected]>

>
> Thank you!
> As far as I see it intended to remove all EXCEPT some artifactes, is
there
> way to configure it in an opposite way (remove only specific group) ?
>
>
> Jaikiran wrote:
> >
> > Maybe this might help
> >
>
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repo
sitory-mojo.html
> > It has a excludes attribute where you can pass the 3rd party
> > groupId:artifactId
> >
> >
> > Pavel Bernshtam wrote:
> >>
> >> For Continuous Integration build I need to build all my projects
for
> >> sources, so I need somehow remove all "my" artifacts from the local
> >> repository before the build (but leave there 3rd party artifacts).
> >> Is there any maven plugin or tool for it or I just need to run some
> >> script before the build which will clean the local repository
> >> selectively?
> >>
> >> Thank you
> >>
> >>
> >> ------------
> >> Pavel
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Cleaning-local-repository-tp21114004p21114404.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to