Re: Interested in a Docker Image & Kubernetes Chart?

2018-10-19 Thread Terence Kent
Hey Martin,

Feel free to add a link to our image and chart on the Archiva webpage.
Also, I threw together a v2-snapshot
 branch/tag
of the image that is built using the most recent 2.2.4 snapshot. All of our
image tests pass using the current 2.2.4-SNAPSHOT build, as you would
expect.

Looking ahead, whenever you dust off this project to finish out 2.2.4 or
jump to version 3, I'd really like to see a docker image brought into the
project directly. Maintaining the image code separately from the project
isn't the greatest idea and since you already have a docker image for
testing, I'm sure it's something you've considered. If we're available the
next time there's some focus on this project, we'll see if we can help out
with that part. We've learned several lessons about running Archiva in a
container over the past few years and we'd love to make some small changes
in the source project to make life easier :-).

Oh, and it'd sure be nice to have an official Kubernetes helm chart once
there is an offical docker image. I'm confident that a lot more people
would use Archiva if was available there.

Best,
Terence

On Fri, Oct 19, 2018 at 12:31 PM Martin  wrote:

> Hi Terence,
>
> thank you for the information. Great work and great to hear, that you
> decided to keep archiva, despite the
> slow development.
> I would like to add the link to our archiva web page if you don't mind.
> We are using docker images for our integration tests on the jenkins
> server, but without kubernetes, maybe I
> can find some configuration on your project that may be useful for these.
>
> Our current snapshot version for the stable 2.2 release branch
> (2.2.4-SNAPSHOT) contains some fixes and
> there are not very much changes compared to the 2.2.3 version, so I would
> consider it as stable.
> If you like, you can use a current snapshot version in your docker image
> or provide an option for using it.
> The zip files can be found at:
>
> https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/archiva/archiva-jetty/2.2.4-SNAPSHOT/
> But it's still a snapshot version so, if there is development going on, it
> may be broken every now and then, so it may be not a
> good idea, if the file is downloaded dynamically during container
> start/build.
>
> Regards
>
> Martin
>
> Am Freitag, 19. Oktober 2018, 02:08:52 CEST schrieb Terence Kent:
> > Hello,
> >
> > In early 2015, we made our Archiva docker image public. It's had a small
> > following on github/dockerhub and we field questions on it from time to
> > time. As best we can tell, it's the de-facto docker image for Archiva.
> >
> > We recently moved to Kubernetes and were faced with the decision of
> > dropping the archiva image and moving to another repository manager, or
> > re-upping and modernizing the image. We chose to re-up and modernize the
> > image and we now have a "version 2" image with an companion helm chart to
> > make it easy to run in Kubernetes.
> >
> > I wanted to reach out to see if you had any interest in making our image
> > your official one and pulling it the Archiva source. I think it's
> > reasonable to assume new Archiva deployments are likely to be
> > containerized, and Kubernetes is the most popular container orchestration
> > platform. If our small image and chart can save you time, we'd be quite
> > happy hand it over.
> >
> > Here's the project links for reference:
> >
> >  - https://github.com/xetus-oss/docker-archiva
> >  - https://github.com/xetus-oss/helm-charts/tree/master/xetusoss-archiva
> >
> > Let me know,
> > Terence
> >
>
>
>


Re: deleting old snapshots

2018-10-19 Thread Martin
Hi Matthew, Terence,

thank you Terence, this is right. These should be the necessary configuration 
points to get it work.
The cron entry is also required, and you have to make sure that the snapshot 
artifact files are named, as maven creates
them, e.g. archiva-checksum-3.0.0-20180409.013311-155.jar

You have to make sure, that the "artifact" file types in the "Repository 
Scanning" configuration match your files, and the types
should not be listed in the "ignored" list.

You can manually run the the scan process by clicking the "Directories 
Scanning" action on the repository. If you activate debug
log, you should see entries from the "RepositoryPurgeConsumer" in archiva.log.

Regards

Martin


Am Freitag, 19. Oktober 2018, 19:22:01 CEST schrieb Terence Kent:
> Stefaan, Matthew,
> 
> I hate "works for me responses", so apologies in advance. However, we are
> seeing artifacts automatically removed according to our repository
> retention settings in our deployment and I wanted to share
> possibly-relevant information.
> 
> We've been using Archiva version 2.2.3 in a docker container for over a
> year now and haven't had any retention-related problems. Here are the parts
> of our configuration that may be relevant.
> 
>1. We have dedicated "snapshots" and "releases" repositories. Only
>snapshots are allowed in the "snapshots" repository, and only "releases" in
>the releases repository.
>2. In each repository we have retention policies, and each repository is
>configured to be scanned.
>3. The "repository-purge" consumer is enabled.
> 
> 
> Also, FWIW, I'm pretty sure the code that applies the retention policy is
> in the "repository-purge" consumer, and the out-most class for the feature
> is found here:
> 
> https://github.com/apache/archiva/blob/9351c66bc89c65357ba72bb84982951919cbc0c4/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/RepositoryPurgeConsumer.java
> 
> Best,
> Terence
> 
> 
> 
> 
> 
> 
> On Fri, Oct 19, 2018 at 7:59 AM Matthew Broadhead
>  wrote:
> 
> >
> > https://github.com/apache/archiva/blob/9351c66bc89c65357ba72bb84982951919cbc0c4/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutor.java#L181
> >
> > seems that it hasn't been implemented?
> >
> > On 19/10/2018 15:39, Matthew Broadhead wrote:
> > > yes i have activated the "repository-purge" consumer under Repository
> > > scanning -> Consumers.  maybe i also need to activate the
> > > "validate-checksums" consumer as that is the only one not enabled
> > >
> > > in my snapshot repository i have the following values:
> > > Cron Expression  0 0,30 * * * ?
> > > Days Older  30
> > > Retention Count  2
> > > Delete Released Snapshots is checked
> > >
> > > i was going to upgrade to 2.2.3 but if yours is not working either
> > > then there is not much point
> > >
> > > i wonder if there is any way to trigger it from the command line?
> > >
> > > On 19/10/2018 13:52, Stefaan Dutry wrote:
> > >> According to my understanding it should be through the
> > >> repository-purge consumer. (This is located under Administration >
> > >> repository scanning > Consumers)
> > >>
> > >> Then on the repository configuration itself there are settings like
> > >> "Delete Released Snapshots" and "retention count" and "days older"
> > >>
> > >> Unfortunately the automatic purge isn't happening on our systems either.
> > >> (our version is 2.2.3)
> > >>
> > >> see:
> > >> http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
> > >> * delete released snapshots
> > >> * repository purge by days older
> > >> * repository purge by retention count
> > >> http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
> > >> * repository-purge
> > >>
> > >> But this is what's specified in the link you provided
> > >>
> > >> Regards,
> > >> Stefaan Dutry
> > >> Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :
> > >>> Hey Matt: some of us are definetly here.  Archiva saved me when I
> > >>> couldn’t pay for nexus so, I’d definetly say there are a few others
> > >>> in that boat. Ufortubately nobody has responded yet.  Next step if
> > >>> necessary would be filing a JIrA issue on the Apache organization
> > >>> for archiva if nobody is able to help on the thread.
> > >>>
> >  On Oct 19, 2018, at 4:51 AM, Matthew Broadhead
> >   wrote:
> > 
> >  sorry to chase but is anyone still monitoring this list? are we
> >  supposed to move to sonatype nexus oss?  i thought apache created
> >  maven?
> > 
> > > On 08/10/2018 20:00, Matthew Broadhead wrote:
> > > i am using 2.2.0 and i have looked through all the settings but i
> > > don't understand how to automatically delete old snapshots.
> > >
> > > i followed this
> > >
> > 

Re: Interested in a Docker Image & Kubernetes Chart?

2018-10-19 Thread Martin
Hi Terence,

thank you for the information. Great work and great to hear, that you decided 
to keep archiva, despite the
slow development.
I would like to add the link to our archiva web page if you don't mind. 
We are using docker images for our integration tests on the jenkins server, but 
without kubernetes, maybe I
can find some configuration on your project that may be useful for these.

Our current snapshot version for the stable 2.2 release branch (2.2.4-SNAPSHOT) 
contains some fixes and
there are not very much changes compared to the 2.2.3 version, so I would 
consider it as stable.
If you like, you can use a current snapshot version in your docker image or 
provide an option for using it.
The zip files can be found at:
https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/archiva/archiva-jetty/2.2.4-SNAPSHOT/
But it's still a snapshot version so, if there is development going on, it may 
be broken every now and then, so it may be not a
good idea, if the file is downloaded dynamically during container start/build.

Regards

Martin

Am Freitag, 19. Oktober 2018, 02:08:52 CEST schrieb Terence Kent:
> Hello,
> 
> In early 2015, we made our Archiva docker image public. It's had a small
> following on github/dockerhub and we field questions on it from time to
> time. As best we can tell, it's the de-facto docker image for Archiva.
> 
> We recently moved to Kubernetes and were faced with the decision of
> dropping the archiva image and moving to another repository manager, or
> re-upping and modernizing the image. We chose to re-up and modernize the
> image and we now have a "version 2" image with an companion helm chart to
> make it easy to run in Kubernetes.
> 
> I wanted to reach out to see if you had any interest in making our image
> your official one and pulling it the Archiva source. I think it's
> reasonable to assume new Archiva deployments are likely to be
> containerized, and Kubernetes is the most popular container orchestration
> platform. If our small image and chart can save you time, we'd be quite
> happy hand it over.
> 
> Here's the project links for reference:
> 
>  - https://github.com/xetus-oss/docker-archiva
>  - https://github.com/xetus-oss/helm-charts/tree/master/xetusoss-archiva
> 
> Let me know,
> Terence
> 




Re: deleting old snapshots

2018-10-19 Thread Terence Kent
Stefaan, Matthew,

I hate "works for me responses", so apologies in advance. However, we are
seeing artifacts automatically removed according to our repository
retention settings in our deployment and I wanted to share
possibly-relevant information.

We've been using Archiva version 2.2.3 in a docker container for over a
year now and haven't had any retention-related problems. Here are the parts
of our configuration that may be relevant.

   1. We have dedicated "snapshots" and "releases" repositories. Only
   snapshots are allowed in the "snapshots" repository, and only "releases" in
   the releases repository.
   2. In each repository we have retention policies, and each repository is
   configured to be scanned.
   3. The "repository-purge" consumer is enabled.


Also, FWIW, I'm pretty sure the code that applies the retention policy is
in the "repository-purge" consumer, and the out-most class for the feature
is found here:

https://github.com/apache/archiva/blob/9351c66bc89c65357ba72bb84982951919cbc0c4/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/RepositoryPurgeConsumer.java

Best,
Terence






On Fri, Oct 19, 2018 at 7:59 AM Matthew Broadhead
 wrote:

>
> https://github.com/apache/archiva/blob/9351c66bc89c65357ba72bb84982951919cbc0c4/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutor.java#L181
>
> seems that it hasn't been implemented?
>
> On 19/10/2018 15:39, Matthew Broadhead wrote:
> > yes i have activated the "repository-purge" consumer under Repository
> > scanning -> Consumers.  maybe i also need to activate the
> > "validate-checksums" consumer as that is the only one not enabled
> >
> > in my snapshot repository i have the following values:
> > Cron Expression  0 0,30 * * * ?
> > Days Older  30
> > Retention Count  2
> > Delete Released Snapshots is checked
> >
> > i was going to upgrade to 2.2.3 but if yours is not working either
> > then there is not much point
> >
> > i wonder if there is any way to trigger it from the command line?
> >
> > On 19/10/2018 13:52, Stefaan Dutry wrote:
> >> According to my understanding it should be through the
> >> repository-purge consumer. (This is located under Administration >
> >> repository scanning > Consumers)
> >>
> >> Then on the repository configuration itself there are settings like
> >> "Delete Released Snapshots" and "retention count" and "days older"
> >>
> >> Unfortunately the automatic purge isn't happening on our systems either.
> >> (our version is 2.2.3)
> >>
> >> see:
> >> http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
> >> * delete released snapshots
> >> * repository purge by days older
> >> * repository purge by retention count
> >> http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
> >> * repository-purge
> >>
> >> But this is what's specified in the link you provided
> >>
> >> Regards,
> >> Stefaan Dutry
> >> Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :
> >>> Hey Matt: some of us are definetly here.  Archiva saved me when I
> >>> couldn’t pay for nexus so, I’d definetly say there are a few others
> >>> in that boat. Ufortubately nobody has responded yet.  Next step if
> >>> necessary would be filing a JIrA issue on the Apache organization
> >>> for archiva if nobody is able to help on the thread.
> >>>
>  On Oct 19, 2018, at 4:51 AM, Matthew Broadhead
>   wrote:
> 
>  sorry to chase but is anyone still monitoring this list? are we
>  supposed to move to sonatype nexus oss?  i thought apache created
>  maven?
> 
> > On 08/10/2018 20:00, Matthew Broadhead wrote:
> > i am using 2.2.0 and i have looked through all the settings but i
> > don't understand how to automatically delete old snapshots.
> >
> > i followed this
> >
> https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps
> > but it didn't work
> >
>
>


Re: deleting old snapshots

2018-10-19 Thread Martin Stockhammer
Hi Mathew,

sorry resources are very limited. 
To help sort this out, please use version 2.2.3. 
There are some tickets in jira about purging. Have you checked, if the 
snapshots are still in the filesystem? There is an issue about the index not 
updated for purged files.
Can you provide some logs?

Regards

Martin




Am 19. Oktober 2018 15:39:54 MESZ schrieb Matthew Broadhead 
:
>yes i have activated the "repository-purge" consumer under Repository 
>scanning -> Consumers.  maybe i also need to activate the 
>"validate-checksums" consumer as that is the only one not enabled
>
>in my snapshot repository i have the following values:
>Cron Expression  0 0,30 * * * ?
>Days Older  30
>Retention Count  2
>Delete Released Snapshots is checked
>
>i was going to upgrade to 2.2.3 but if yours is not working either then
>
>there is not much point
>
>i wonder if there is any way to trigger it from the command line?
>
>On 19/10/2018 13:52, Stefaan Dutry wrote:
>> According to my understanding it should be through the
>> repository-purge consumer. (This is located under Administration >
>> repository scanning > Consumers)
>>
>> Then on the repository configuration itself there are settings like
>> "Delete Released Snapshots" and "retention count" and "days older"
>>
>> Unfortunately the automatic purge isn't happening on our systems
>either.
>> (our version is 2.2.3)
>>
>> see:
>> http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
>> * delete released snapshots
>> * repository purge by days older
>> * repository purge by retention count
>> http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
>> * repository-purge
>>
>> But this is what's specified in the link you provided
>>
>> Regards,
>> Stefaan Dutry
>> Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :
>>> Hey Matt: some of us are definetly here.  Archiva saved me when I
>couldn’t pay for nexus so, I’d definetly say there are a few others in
>that boat.  Ufortubately nobody has responded yet.  Next step if
>necessary would be filing a JIrA issue on the Apache organization for
>archiva if nobody is able to help on the thread.
>>>
 On Oct 19, 2018, at 4:51 AM, Matthew Broadhead
> wrote:

 sorry to chase but is anyone still monitoring this list?  are we
>supposed to move to sonatype nexus oss?  i thought apache created
>maven?

> On 08/10/2018 20:00, Matthew Broadhead wrote:
> i am using 2.2.0 and i have looked through all the settings but i
>don't understand how to automatically delete old snapshots.
>
> i followed this
>https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps
>but it didn't work

-- 
This message was sent from mobile phone.

Re: deleting old snapshots

2018-10-19 Thread Matthew Broadhead

https://github.com/apache/archiva/blob/9351c66bc89c65357ba72bb84982951919cbc0c4/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutor.java#L181

seems that it hasn't been implemented?

On 19/10/2018 15:39, Matthew Broadhead wrote:
yes i have activated the "repository-purge" consumer under Repository 
scanning -> Consumers.  maybe i also need to activate the 
"validate-checksums" consumer as that is the only one not enabled


in my snapshot repository i have the following values:
Cron Expression  0 0,30 * * * ?
Days Older  30
Retention Count  2
Delete Released Snapshots is checked

i was going to upgrade to 2.2.3 but if yours is not working either 
then there is not much point


i wonder if there is any way to trigger it from the command line?

On 19/10/2018 13:52, Stefaan Dutry wrote:

According to my understanding it should be through the
repository-purge consumer. (This is located under Administration >
repository scanning > Consumers)

Then on the repository configuration itself there are settings like
"Delete Released Snapshots" and "retention count" and "days older"

Unfortunately the automatic purge isn't happening on our systems either.
(our version is 2.2.3)

see:
http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
* delete released snapshots
* repository purge by days older
* repository purge by retention count
http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
* repository-purge

But this is what's specified in the link you provided

Regards,
Stefaan Dutry
Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :
Hey Matt: some of us are definetly here.  Archiva saved me when I 
couldn’t pay for nexus so, I’d definetly say there are a few others 
in that boat. Ufortubately nobody has responded yet.  Next step if 
necessary would be filing a JIrA issue on the Apache organization 
for archiva if nobody is able to help on the thread.


On Oct 19, 2018, at 4:51 AM, Matthew Broadhead 
 wrote:


sorry to chase but is anyone still monitoring this list? are we 
supposed to move to sonatype nexus oss?  i thought apache created 
maven?



On 08/10/2018 20:00, Matthew Broadhead wrote:
i am using 2.2.0 and i have looked through all the settings but i 
don't understand how to automatically delete old snapshots.


i followed this 
https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps 
but it didn't work






Re: deleting old snapshots

2018-10-19 Thread Matthew Broadhead
yes i have activated the "repository-purge" consumer under Repository 
scanning -> Consumers.  maybe i also need to activate the 
"validate-checksums" consumer as that is the only one not enabled


in my snapshot repository i have the following values:
Cron Expression  0 0,30 * * * ?
Days Older  30
Retention Count  2
Delete Released Snapshots is checked

i was going to upgrade to 2.2.3 but if yours is not working either then 
there is not much point


i wonder if there is any way to trigger it from the command line?

On 19/10/2018 13:52, Stefaan Dutry wrote:

According to my understanding it should be through the
repository-purge consumer. (This is located under Administration >
repository scanning > Consumers)

Then on the repository configuration itself there are settings like
"Delete Released Snapshots" and "retention count" and "days older"

Unfortunately the automatic purge isn't happening on our systems either.
(our version is 2.2.3)

see:
http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
* delete released snapshots
* repository purge by days older
* repository purge by retention count
http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
* repository-purge

But this is what's specified in the link you provided

Regards,
Stefaan Dutry
Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :

Hey Matt: some of us are definetly here.  Archiva saved me when I couldn’t pay 
for nexus so, I’d definetly say there are a few others in that boat.  
Ufortubately nobody has responded yet.  Next step if necessary would be filing 
a JIrA issue on the Apache organization for archiva if nobody is able to help 
on the thread.


On Oct 19, 2018, at 4:51 AM, Matthew Broadhead 
 wrote:

sorry to chase but is anyone still monitoring this list?  are we supposed to 
move to sonatype nexus oss?  i thought apache created maven?


On 08/10/2018 20:00, Matthew Broadhead wrote:
i am using 2.2.0 and i have looked through all the settings but i don't 
understand how to automatically delete old snapshots.

i followed this 
https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps
 but it didn't work




Re: deleting old snapshots

2018-10-19 Thread Stefaan Dutry
According to my understanding it should be through the
repository-purge consumer. (This is located under Administration >
repository scanning > Consumers)

Then on the repository configuration itself there are settings like
"Delete Released Snapshots" and "retention count" and "days older"

Unfortunately the automatic purge isn't happening on our systems either.
(our version is 2.2.3)

see:
http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html
* delete released snapshots
* repository purge by days older
* repository purge by retention count
http://archiva.apache.org/docs/2.2.0/adminguide/consumers.html
* repository-purge

But this is what's specified in the link you provided

Regards,
Stefaan Dutry
Op vr 19 okt. 2018 om 13:37 schreef Jay Vyas :
>
> Hey Matt: some of us are definetly here.  Archiva saved me when I couldn’t 
> pay for nexus so, I’d definetly say there are a few others in that boat.  
> Ufortubately nobody has responded yet.  Next step if necessary would be 
> filing a JIrA issue on the Apache organization for archiva if nobody is able 
> to help on the thread.
>
> > On Oct 19, 2018, at 4:51 AM, Matthew Broadhead 
> >  wrote:
> >
> > sorry to chase but is anyone still monitoring this list?  are we supposed 
> > to move to sonatype nexus oss?  i thought apache created maven?
> >
> >> On 08/10/2018 20:00, Matthew Broadhead wrote:
> >> i am using 2.2.0 and i have looked through all the settings but i don't 
> >> understand how to automatically delete old snapshots.
> >>
> >> i followed this 
> >> https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps
> >>  but it didn't work
> >


Re: deleting old snapshots

2018-10-19 Thread Jay Vyas
Hey Matt: some of us are definetly here.  Archiva saved me when I couldn’t pay 
for nexus so, I’d definetly say there are a few others in that boat.  
Ufortubately nobody has responded yet.  Next step if necessary would be filing 
a JIrA issue on the Apache organization for archiva if nobody is able to help 
on the thread.

> On Oct 19, 2018, at 4:51 AM, Matthew Broadhead 
>  wrote:
> 
> sorry to chase but is anyone still monitoring this list?  are we supposed to 
> move to sonatype nexus oss?  i thought apache created maven?
> 
>> On 08/10/2018 20:00, Matthew Broadhead wrote:
>> i am using 2.2.0 and i have looked through all the settings but i don't 
>> understand how to automatically delete old snapshots.
>> 
>> i followed this 
>> https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps
>>  but it didn't work
> 


Re: deleting old snapshots

2018-10-19 Thread Matthew Broadhead
sorry to chase but is anyone still monitoring this list?  are we 
supposed to move to sonatype nexus oss?  i thought apache created maven?


On 08/10/2018 20:00, Matthew Broadhead wrote:
i am using 2.2.0 and i have looked through all the settings but i 
don't understand how to automatically delete old snapshots.


i followed this 
https://stackoverflow.com/questions/12315461/how-to-configure-maven-or-apache-archiva-that-it-keeps-only-n-builds-of-an-snaps 
but it didn't work