You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Papapara Tudu <pa...@poczta.onet.pl> on 2008/03/06 15:55:31 UTC
Wiping out a dependency from an internal repository
Hello,
I would like to delete the whole folder that contains a certain dependency
from my internal repository by running a Maven command from a dev machine.
Is it possible to do that?
Thanks,
Papapara Tudu
--
View this message in context: http://www.nabble.com/Wiping-out-a-dependency-from-an-internal-repository-tp15873175s177p15873175.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Wiping out a dependency from an internal repository
Posted by Wayne Fay <wa...@gmail.com>.
On 3/6/08, Wendy Smoak <ws...@gmail.com> wrote:
> Maven Dependency Plugin -> purge-local-repository maybe?
>
> http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
That's it! Thanks Wendy. ;-)
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Wiping out a dependency from an internal repository
Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Mar 6, 2008 at 9:08 AM, Wayne Fay <wa...@gmail.com> wrote:
> I know I've seen someone mention a plugin here that can either wipe
> out your entire repo or selected parts of it. But I can't recall what
> its called right now, and a quick Google search didn't reveal anything
> (but I didn't dig much). So if someone else remembers, perhaps they'll
> post a follow-up.
Maven Dependency Plugin -> purge-local-repository maybe?
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Wiping out a dependency from an internal repository
Posted by Wayne Fay <wa...@gmail.com>.
I know I've seen someone mention a plugin here that can either wipe
out your entire repo or selected parts of it. But I can't recall what
its called right now, and a quick Google search didn't reveal anything
(but I didn't dig much). So if someone else remembers, perhaps they'll
post a follow-up.
Wayne
On 3/6/08, simon.kitching@chello.at <si...@chello.at> wrote:
> Papapara Tudu schrieb:
> > Hello,
> >
> > I would like to delete the whole folder that contains a certain dependency
> > from my internal repository by running a Maven command from a dev machine.
> > Is it possible to do that?
> >
>
> Do you mean deleting stuff from the ~/.m2/repository directorty on the
> same computer you are running maven from?
>
> The best solution is probably maven-antrun-plugin. That's the fallback
> for doing weird things, and this really sounds like a weird thing to do.
>
> If you mean you want to delete stuff from some other computer, then
> that's trickier, but using maven-antrun-plugin is again probably the way
> to do it (via an scp or ssh command or something like that). There is
> certainly no standard way of doing that in maven, as nobody ever wants to.
>
> Maybe you should think carefully about whether you really need to do any
> of this though..
>
> Regards,
> Simon
>
>
> ---------------------------------------------------------------------
> 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: Wiping out a dependency from an internal repository
Posted by Papapara Tudu <pa...@poczta.onet.pl>.
simon.kitching@chello.at wrote:
>
> Do you mean deleting stuff from the ~/.m2/repository directorty on the
> same computer you are running maven from?
> ...
> Maybe you should think carefully about whether you really need to do any
> of this though..
>
Actually all of this is related to my problem with picking up the correct
snapshot which I described in this thread:
http://www.nabble.com/Problem-with-snapshots-td15709789s177.html
As I still haven't resolved that problem, what I'm going to do is delete the
whole snapshot dependency from my local repository (first I thought of
deleting it from the internal repository, but now I've noticed it's enogh
just to delete it from the local one) at the beginning of the build and then
the newest version of the snapshot will be downloaded from the internal
repository.
It's a brutal workaround, but since I cannot get the common approach to
work, I need to restort to this.
Cheers,
Papapara Tudu
--
View this message in context: http://www.nabble.com/Wiping-out-a-dependency-from-an-internal-repository-tp15873175s177p15891117.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Wiping out a dependency from an internal repository
Posted by "simon.kitching@chello.at" <si...@chello.at>.
Papapara Tudu schrieb:
> Hello,
>
> I would like to delete the whole folder that contains a certain dependency
> from my internal repository by running a Maven command from a dev machine.
> Is it possible to do that?
>
Do you mean deleting stuff from the ~/.m2/repository directorty on the
same computer you are running maven from?
The best solution is probably maven-antrun-plugin. That's the fallback
for doing weird things, and this really sounds like a weird thing to do.
If you mean you want to delete stuff from some other computer, then
that's trickier, but using maven-antrun-plugin is again probably the way
to do it (via an scp or ssh command or something like that). There is
certainly no standard way of doing that in maven, as nobody ever wants to.
Maybe you should think carefully about whether you really need to do any
of this though..
Regards,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org