You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Alastair FETTES <af...@mdacorporation.com> on 2008/08/18 18:30:55 UTC

Delete files from Archiva

When I need to manage some of the files in my Archiva 1.1 repository do
I perform this by simply managing them on the disk?  An example is if a
number of jar+pom files were added incorrectly and I need to remove
them.  
 
I can't seem to find details of this on the website, wiki, mailing lists
or anywhere.
 
Thanks in advance.
 
Alastair

Re: Delete files from Archiva

Posted by Maria Odea Ching <oc...@apache.org>.
Hi Alastair,

You might need to run the database scanner in order to clear up the browse
since the artifacts shown there come from the database..

Thanks,
Deng

On Tue, Aug 19, 2008 at 3:45 AM, Alastair FETTES <afettes@mdacorporation.com
> wrote:

> Hi Seb.
>
> I did enable this consumer.  I also deleted these files from disk.  What
> remains is that the Browse feature of the UI still shows all old builds.  If
> I browse directly to the repository itself via the WebDAV url, everything
> seems to be ok.  There seems to be a disconnect between what is on the disk,
> what is shown in the individual repository and finally what is shown via the
> Browse Repository feature of the main UI.
>
> This last point is my main problem.  The browse function still shows old
> builds that have been removed.
>
> Alastair
>
> -----Original Message-----
> From: sebastien.peyron@gmail.com [mailto:sebastien.peyron@gmail.com] On
> Behalf Of Sébastien PEYRON
> Sent: Monday, August 18, 2008 12:41 PM
> To: users@archiva.apache.org
> Subject: Re: Delete files from Archiva
>
> Do you enable the *repository-purge consumer* in the repository scanning
> screen ?
>
> Seb
>
> 2008/8/18 Wendy Smoak <ws...@gmail.com>
>
> > On Mon, Aug 18, 2008 at 10:43 AM, Alastair FETTES
> > <af...@mdacorporation.com> wrote:
> > > Thanks, that's good to know.  It actually does help quite a bit
> > > since I couldn't find that information anywhere on the website or wiki.
> >
> > So technically, repository purging is another way to delete, but it
> > doesn't seem to be working correctly at the moment.  Can you see
> > whether your problem has already been reported?
> > http://jira.codehaus.org/browse/MRM
> >
> > If you're not actually using the timestamped snapshots, you could add
> > <uniqueVersion>false</uniqueVersion> to the snapshot repo distribution
> > management.  Then Maven will keep overwriting the single
> > whatever-1.0-SNAPSHOT.jar file.
> >
> > --
> > Wendy
> >
>
>
>
> --
> Sébastien Peyron
>

RE: Delete files from Archiva

Posted by Alastair FETTES <af...@mdacorporation.com>.
Hi Seb.

I did enable this consumer.  I also deleted these files from disk.  What remains is that the Browse feature of the UI still shows all old builds.  If I browse directly to the repository itself via the WebDAV url, everything seems to be ok.  There seems to be a disconnect between what is on the disk, what is shown in the individual repository and finally what is shown via the Browse Repository feature of the main UI.

This last point is my main problem.  The browse function still shows old builds that have been removed.

Alastair

-----Original Message-----
From: sebastien.peyron@gmail.com [mailto:sebastien.peyron@gmail.com] On Behalf Of Sébastien PEYRON
Sent: Monday, August 18, 2008 12:41 PM
To: users@archiva.apache.org
Subject: Re: Delete files from Archiva

Do you enable the *repository-purge consumer* in the repository scanning screen ?

Seb

2008/8/18 Wendy Smoak <ws...@gmail.com>

> On Mon, Aug 18, 2008 at 10:43 AM, Alastair FETTES 
> <af...@mdacorporation.com> wrote:
> > Thanks, that's good to know.  It actually does help quite a bit 
> > since I couldn't find that information anywhere on the website or wiki.
>
> So technically, repository purging is another way to delete, but it 
> doesn't seem to be working correctly at the moment.  Can you see 
> whether your problem has already been reported?
> http://jira.codehaus.org/browse/MRM
>
> If you're not actually using the timestamped snapshots, you could add 
> <uniqueVersion>false</uniqueVersion> to the snapshot repo distribution 
> management.  Then Maven will keep overwriting the single 
> whatever-1.0-SNAPSHOT.jar file.
>
> --
> Wendy
>



--
Sébastien Peyron

Re: Delete files from Archiva

Posted by Sébastien PEYRON <se...@peyron.org>.
Do you enable the *repository-purge consumer* in the repository scanning
screen ?

Seb

2008/8/18 Wendy Smoak <ws...@gmail.com>

> On Mon, Aug 18, 2008 at 10:43 AM, Alastair FETTES
> <af...@mdacorporation.com> wrote:
> > Thanks, that's good to know.  It actually does help quite a bit since I
> > couldn't find that information anywhere on the website or wiki.
>
> So technically, repository purging is another way to delete, but it
> doesn't seem to be working correctly at the moment.  Can you see
> whether your problem has already been reported?
> http://jira.codehaus.org/browse/MRM
>
> If you're not actually using the timestamped snapshots, you could add
> <uniqueVersion>false</uniqueVersion> to the snapshot repo distribution
> management.  Then Maven will keep overwriting the single
> whatever-1.0-SNAPSHOT.jar file.
>
> --
> Wendy
>



-- 
Sébastien Peyron

Re: Delete files from Archiva

Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Aug 18, 2008 at 10:43 AM, Alastair FETTES
<af...@mdacorporation.com> wrote:
> Thanks, that's good to know.  It actually does help quite a bit since I
> couldn't find that information anywhere on the website or wiki.

So technically, repository purging is another way to delete, but it
doesn't seem to be working correctly at the moment.  Can you see
whether your problem has already been reported?
http://jira.codehaus.org/browse/MRM

If you're not actually using the timestamped snapshots, you could add
<uniqueVersion>false</uniqueVersion> to the snapshot repo distribution
management.  Then Maven will keep overwriting the single
whatever-1.0-SNAPSHOT.jar file.

-- 
Wendy

RE: Delete files from Archiva

Posted by Alastair FETTES <af...@mdacorporation.com>.
Thanks, that's good to know.  It actually does help quite a bit since I
couldn't find that information anywhere on the website or wiki.

The problem that spurred this question is that we are running into
problems with the integration of Hudson-Maven2-Archiva.  We perform a
build every 30 minutes and if I use the deploy goal for Maven2 on Hudson
(or the deploy to repository option), every 30 minutes it adds a new
version and updates the SNAPSHOT version.

Example at 10:30am
10:00am build - 1.0-20080818.143303-138 
10:30am build - 1.0-20080818.150302-139 
Latest snapshot: 1.0-SNAPSHOT (actually 1.0-20080818.150302-139).

All the version 1.0-YYYYMMDD.TTTTTT-BBB are retained and never purged by
Archiva.  When I set up repository scanning to purge old files
(retention count 5, days 0) it leaves all these old builds.

Does anyone know a way to get this setup such that Archiva will actually
remove these old versions?

Thanks in advance.
Alastair

-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Monday, August 18, 2008 10:00 AM
To: users@archiva.apache.org
Subject: Re: Delete files from Archiva

On Mon, Aug 18, 2008 at 9:30 AM, Alastair FETTES
<af...@mdacorporation.com> wrote:
> When I need to manage some of the files in my Archiva 1.1 repository 
> do I perform this by simply managing them on the disk?  An example is 
> if a number of jar+pom files were added incorrectly and I need to 
> remove them.

Right now the only way to delete is by modifying the filesystem
directly. (As a repository manager you should be able to do it through
the webdav interface, for examply by opening the repo as a 'web folder'
in Windows, but I haven't tried that in a while.)

Being able to delete through the web ui has been on my wish list for a
while and I just opened an issue yesterday.  You might want to comment
on/vote for it:  http://jira.codehaus.org/browse/MRM-913

--
Wendy

Re: Delete files from Archiva

Posted by Wendy Smoak <ws...@gmail.com>.
On Mon, Aug 18, 2008 at 9:30 AM, Alastair FETTES
<af...@mdacorporation.com> wrote:
> When I need to manage some of the files in my Archiva 1.1 repository do
> I perform this by simply managing them on the disk?  An example is if a
> number of jar+pom files were added incorrectly and I need to remove
> them.

Right now the only way to delete is by modifying the filesystem
directly. (As a repository manager you should be able to do it through
the webdav interface, for examply by opening the repo as a 'web
folder' in Windows, but I haven't tried that in a while.)

Being able to delete through the web ui has been on my wish list for a
while and I just opened an issue yesterday.  You might want to comment
on/vote for it:  http://jira.codehaus.org/browse/MRM-913

-- 
Wendy