You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wim Deblauwe <wi...@gmail.com> on 2010/03/01 19:41:13 UTC
Purging local repository
Hi,
what is the best way if I want to erase all the artifacts from my local repo
of the thing i am about to build using Maven? I tried the dependency plugin,
but that only seems to remove the _dependencies_ of my artifact, not the
current artifact.
regards,
Wim
Re: Purging local repository
Posted by Wim Deblauwe <wi...@gmail.com>.
Yes, since that removes the whole repo. I only want to delete the repo dir
of the artifact I am about to build.
2010/3/1 Nick Klauer <kl...@gmail.com>
> You mean besides simply deleting the ${user.home}/.m2/repository directory?
>
> On Mon, Mar 1, 2010 at 12:41 PM, Wim Deblauwe <wim.deblauwe@gmail.com
> >wrote:
>
> > Hi,
> >
> > what is the best way if I want to erase all the artifacts from my local
> > repo
> > of the thing i am about to build using Maven? I tried the dependency
> > plugin,
> > but that only seems to remove the _dependencies_ of my artifact, not the
> > current artifact.
> >
> > regards,
> >
> > Wim
> >
>
Re: Purging local repository
Posted by Nick Klauer <kl...@gmail.com>.
You mean besides simply deleting the ${user.home}/.m2/repository directory?
On Mon, Mar 1, 2010 at 12:41 PM, Wim Deblauwe <wi...@gmail.com>wrote:
> Hi,
>
> what is the best way if I want to erase all the artifacts from my local
> repo
> of the thing i am about to build using Maven? I tried the dependency
> plugin,
> but that only seems to remove the _dependencies_ of my artifact, not the
> current artifact.
>
> regards,
>
> Wim
>
Re: Purging local repository
Posted by David Hoffer <dh...@gmail.com>.
Seems like your script could purge just your groupId(s) if you want.
(That may be what our CI guy does...like you say...no reason to purge
things guaranteed not to change.)
-Dave
On Tue, Mar 2, 2010 at 12:12 PM, Wim Deblauwe <wi...@gmail.com> wrote:
> I also did that for now, but it seems a bit like a workaround and really
> unneeded for the dependencies we get from elsewhere (like maven central)
>
> 2010/3/2 David Hoffer <dh...@gmail.com>
>
>> Okay, I don't use Nexus or Hudson so I don't know how those work. Do you
>> need timestamped snapshots? We haven't found timestamped snapshots to be
>> needed so the CI build just overwrites the one and only snapshot.
>>
>> Btw, on our CI systems we purge the entire local repo once per day, this
>> helps clean things out as sometimes we refactor projects and rename
>> group/artifact ids for snapshots.
>>
>> -Dave
>>
>> On Tue, Mar 2, 2010 at 6:28 AM, Wim Deblauwe <wi...@gmail.com>
>> wrote:
>>
>> > To avoid filling up the disk.
>> >
>> > I have a virtualized ubuntu linux which has been given 50 GB and runs
>> Nexus
>> > and Hudson. When Hudson builds using maven, it copies a lot of the nexus
>> to
>> > the local repo. The local repo has timestamped versions of my snapshots,
>> so
>> > I want to avoid that those snapshots fill up my harddisk.
>> >
>> > regards,
>> >
>> > Wim
>> >
>> > 2010/3/2 David Hoffer <dh...@gmail.com>
>> >
>> > > Just wondering, why do you want to do this?
>> > >
>> > > -Dave
>> > >
>> > > On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe <wi...@gmail.com>
>> > > wrote:
>> > >
>> > > > Indeed. I would have expected the goal to remove all previously
>> > generated
>> > > > artifacts of the artifact I am running this command on. I tried the
>> > > > 'artifactId' mode, but it did not remove any previously created jar
>> > from
>> > > my
>> > > > local repo.
>> > > >
>> > > > 2010/3/1 Jesse Farinacci <ji...@gmail.com>
>> > > >
>> > > > > Hi Wim,
>> > > > >
>> > > > > On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <
>> wim.deblauwe@gmail.com
>> > >
>> > > > > wrote:
>> > > > > > what is the best way if I want to erase all the artifacts from my
>> > > local
>> > > > > repo
>> > > > > > of the thing i am about to build using Maven? I tried the
>> > dependency
>> > > > > plugin,
>> > > > > > but that only seems to remove the _dependencies_ of my artifact,
>> > not
>> > > > the
>> > > > > > current artifact.
>> > > > >
>> > > > > Do you mean you tried
>> maven-dependency-plugin:purge-local-repository
>> > > > > and it didn't do as you expect?
>> > > > >
>> > > > > -Jesse
>> > > > >
>> > > > > --
>> > > > > There are 10 types of people in this world, those
>> > > > > that can read binary and those that can not.
>> > > > >
>> > > > >
>> ---------------------------------------------------------------------
>> > > > > 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: Purging local repository
Posted by Wim Deblauwe <wi...@gmail.com>.
I also did that for now, but it seems a bit like a workaround and really
unneeded for the dependencies we get from elsewhere (like maven central)
2010/3/2 David Hoffer <dh...@gmail.com>
> Okay, I don't use Nexus or Hudson so I don't know how those work. Do you
> need timestamped snapshots? We haven't found timestamped snapshots to be
> needed so the CI build just overwrites the one and only snapshot.
>
> Btw, on our CI systems we purge the entire local repo once per day, this
> helps clean things out as sometimes we refactor projects and rename
> group/artifact ids for snapshots.
>
> -Dave
>
> On Tue, Mar 2, 2010 at 6:28 AM, Wim Deblauwe <wi...@gmail.com>
> wrote:
>
> > To avoid filling up the disk.
> >
> > I have a virtualized ubuntu linux which has been given 50 GB and runs
> Nexus
> > and Hudson. When Hudson builds using maven, it copies a lot of the nexus
> to
> > the local repo. The local repo has timestamped versions of my snapshots,
> so
> > I want to avoid that those snapshots fill up my harddisk.
> >
> > regards,
> >
> > Wim
> >
> > 2010/3/2 David Hoffer <dh...@gmail.com>
> >
> > > Just wondering, why do you want to do this?
> > >
> > > -Dave
> > >
> > > On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe <wi...@gmail.com>
> > > wrote:
> > >
> > > > Indeed. I would have expected the goal to remove all previously
> > generated
> > > > artifacts of the artifact I am running this command on. I tried the
> > > > 'artifactId' mode, but it did not remove any previously created jar
> > from
> > > my
> > > > local repo.
> > > >
> > > > 2010/3/1 Jesse Farinacci <ji...@gmail.com>
> > > >
> > > > > Hi Wim,
> > > > >
> > > > > On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <
> wim.deblauwe@gmail.com
> > >
> > > > > wrote:
> > > > > > what is the best way if I want to erase all the artifacts from my
> > > local
> > > > > repo
> > > > > > of the thing i am about to build using Maven? I tried the
> > dependency
> > > > > plugin,
> > > > > > but that only seems to remove the _dependencies_ of my artifact,
> > not
> > > > the
> > > > > > current artifact.
> > > > >
> > > > > Do you mean you tried
> maven-dependency-plugin:purge-local-repository
> > > > > and it didn't do as you expect?
> > > > >
> > > > > -Jesse
> > > > >
> > > > > --
> > > > > There are 10 types of people in this world, those
> > > > > that can read binary and those that can not.
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > >
> >
>
Re: Purging local repository
Posted by David Hoffer <dh...@gmail.com>.
Okay, I don't use Nexus or Hudson so I don't know how those work. Do you
need timestamped snapshots? We haven't found timestamped snapshots to be
needed so the CI build just overwrites the one and only snapshot.
Btw, on our CI systems we purge the entire local repo once per day, this
helps clean things out as sometimes we refactor projects and rename
group/artifact ids for snapshots.
-Dave
On Tue, Mar 2, 2010 at 6:28 AM, Wim Deblauwe <wi...@gmail.com> wrote:
> To avoid filling up the disk.
>
> I have a virtualized ubuntu linux which has been given 50 GB and runs Nexus
> and Hudson. When Hudson builds using maven, it copies a lot of the nexus to
> the local repo. The local repo has timestamped versions of my snapshots, so
> I want to avoid that those snapshots fill up my harddisk.
>
> regards,
>
> Wim
>
> 2010/3/2 David Hoffer <dh...@gmail.com>
>
> > Just wondering, why do you want to do this?
> >
> > -Dave
> >
> > On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe <wi...@gmail.com>
> > wrote:
> >
> > > Indeed. I would have expected the goal to remove all previously
> generated
> > > artifacts of the artifact I am running this command on. I tried the
> > > 'artifactId' mode, but it did not remove any previously created jar
> from
> > my
> > > local repo.
> > >
> > > 2010/3/1 Jesse Farinacci <ji...@gmail.com>
> > >
> > > > Hi Wim,
> > > >
> > > > On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <wim.deblauwe@gmail.com
> >
> > > > wrote:
> > > > > what is the best way if I want to erase all the artifacts from my
> > local
> > > > repo
> > > > > of the thing i am about to build using Maven? I tried the
> dependency
> > > > plugin,
> > > > > but that only seems to remove the _dependencies_ of my artifact,
> not
> > > the
> > > > > current artifact.
> > > >
> > > > Do you mean you tried maven-dependency-plugin:purge-local-repository
> > > > and it didn't do as you expect?
> > > >
> > > > -Jesse
> > > >
> > > > --
> > > > There are 10 types of people in this world, those
> > > > that can read binary and those that can not.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
>
Re: Purging local repository
Posted by Wim Deblauwe <wi...@gmail.com>.
To avoid filling up the disk.
I have a virtualized ubuntu linux which has been given 50 GB and runs Nexus
and Hudson. When Hudson builds using maven, it copies a lot of the nexus to
the local repo. The local repo has timestamped versions of my snapshots, so
I want to avoid that those snapshots fill up my harddisk.
regards,
Wim
2010/3/2 David Hoffer <dh...@gmail.com>
> Just wondering, why do you want to do this?
>
> -Dave
>
> On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe <wi...@gmail.com>
> wrote:
>
> > Indeed. I would have expected the goal to remove all previously generated
> > artifacts of the artifact I am running this command on. I tried the
> > 'artifactId' mode, but it did not remove any previously created jar from
> my
> > local repo.
> >
> > 2010/3/1 Jesse Farinacci <ji...@gmail.com>
> >
> > > Hi Wim,
> > >
> > > On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <wi...@gmail.com>
> > > wrote:
> > > > what is the best way if I want to erase all the artifacts from my
> local
> > > repo
> > > > of the thing i am about to build using Maven? I tried the dependency
> > > plugin,
> > > > but that only seems to remove the _dependencies_ of my artifact, not
> > the
> > > > current artifact.
> > >
> > > Do you mean you tried maven-dependency-plugin:purge-local-repository
> > > and it didn't do as you expect?
> > >
> > > -Jesse
> > >
> > > --
> > > There are 10 types of people in this world, those
> > > that can read binary and those that can not.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
Re: Purging local repository
Posted by David Hoffer <dh...@gmail.com>.
Just wondering, why do you want to do this?
-Dave
On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe <wi...@gmail.com> wrote:
> Indeed. I would have expected the goal to remove all previously generated
> artifacts of the artifact I am running this command on. I tried the
> 'artifactId' mode, but it did not remove any previously created jar from my
> local repo.
>
> 2010/3/1 Jesse Farinacci <ji...@gmail.com>
>
> > Hi Wim,
> >
> > On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <wi...@gmail.com>
> > wrote:
> > > what is the best way if I want to erase all the artifacts from my local
> > repo
> > > of the thing i am about to build using Maven? I tried the dependency
> > plugin,
> > > but that only seems to remove the _dependencies_ of my artifact, not
> the
> > > current artifact.
> >
> > Do you mean you tried maven-dependency-plugin:purge-local-repository
> > and it didn't do as you expect?
> >
> > -Jesse
> >
> > --
> > There are 10 types of people in this world, those
> > that can read binary and those that can not.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
Re: Purging local repository
Posted by Wim Deblauwe <wi...@gmail.com>.
Indeed. I would have expected the goal to remove all previously generated
artifacts of the artifact I am running this command on. I tried the
'artifactId' mode, but it did not remove any previously created jar from my
local repo.
2010/3/1 Jesse Farinacci <ji...@gmail.com>
> Hi Wim,
>
> On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <wi...@gmail.com>
> wrote:
> > what is the best way if I want to erase all the artifacts from my local
> repo
> > of the thing i am about to build using Maven? I tried the dependency
> plugin,
> > but that only seems to remove the _dependencies_ of my artifact, not the
> > current artifact.
>
> Do you mean you tried maven-dependency-plugin:purge-local-repository
> and it didn't do as you expect?
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Purging local repository
Posted by Jesse Farinacci <ji...@gmail.com>.
Hi Wim,
On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe <wi...@gmail.com> wrote:
> what is the best way if I want to erase all the artifacts from my local repo
> of the thing i am about to build using Maven? I tried the dependency plugin,
> but that only seems to remove the _dependencies_ of my artifact, not the
> current artifact.
Do you mean you tried maven-dependency-plugin:purge-local-repository
and it didn't do as you expect?
-Jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org