Return-Path: X-Original-To: apmail-archiva-users-archive@www.apache.org Delivered-To: apmail-archiva-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DC59EB2E for ; Wed, 23 Jan 2013 22:57:37 +0000 (UTC) Received: (qmail 81773 invoked by uid 500); 23 Jan 2013 22:57:36 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 81697 invoked by uid 500); 23 Jan 2013 22:57:36 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 81685 invoked by uid 99); 23 Jan 2013 22:57:36 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 22:57:36 +0000 Received: from localhost (HELO mail-lb0-f182.google.com) (127.0.0.1) (smtp-auth username olamy, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 22:57:35 +0000 Received: by mail-lb0-f182.google.com with SMTP id gg6so5989208lbb.27 for ; Wed, 23 Jan 2013 14:57:33 -0800 (PST) X-Received: by 10.112.13.162 with SMTP id i2mr1385610lbc.76.1358981853491; Wed, 23 Jan 2013 14:57:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.76.231 with HTTP; Wed, 23 Jan 2013 14:57:13 -0800 (PST) In-Reply-To: <9E24FE73B6CFAC4592582CA1A18643DC1397A065@OAEXCH2SERVER.oa.oclc.org> References: <9E24FE73B6CFAC4592582CA1A18643DC1397A03C@OAEXCH2SERVER.oa.oclc.org> <9E24FE73B6CFAC4592582CA1A18643DC1397A065@OAEXCH2SERVER.oa.oclc.org> From: Olivier Lamy Date: Wed, 23 Jan 2013 23:57:13 +0100 Message-ID: Subject: Re: Problem when Archiva cleans up snapshots of released artifacts To: users@archiva.apache.org Content-Type: text/plain; charset=ISO-8859-1 2013/1/22 Stallard,David : > We have different repositories for snapshots and releases. It looks > like maybe when Archiva deletes old snapshots because a release exists, > it leaves metadata files sitting around. Maybe that's what is causing > the error? normally nope. Did you try with a more recent version ? (1.4-Mx) > > We turned off the "delete released snapshots" option and then were able > to upload additional snapshots, so that resolves our immediate issue. > It just means that we will have higher disk space requirements because > of the old snapshots which will stick around forever (our retention rule > is to delete snapshots after 2 days, but always keep the most recent 2 > snapshots regardless of age). > > > -----Original Message----- > From: Olivier Lamy [mailto:olamy@apache.org] > Sent: Tuesday, January 22, 2013 3:30 PM > To: users@archiva.apache.org > Subject: Re: Problem when Archiva cleans up snapshots of released > artifacts > > 2013/1/21 Stallard,David : >> We're running Archiva 1.3.5, and a few months ago we enabled the >> repository setting which causes Archiva to delete snapshots of >> released artifacts, which at first seemed to work fine. We have cases > >> where snapshot builds of an artifact need to be done AFTER the >> artifact has been released. In these cases, maven fails to upload to >> Archiva with either a 409 or 400 error. This wasn't an issue until we > >> enabled the deletion of released snapshots. >> >> In one example today of building a 1.1-SNAPSHOT artifact after 1.1 had > >> been released, the error was 409. I went out to Archiva's directory >> structure and saw that we had a 1.1-SNAPSHOT directory out there but >> there was nothing in it except maven-metadata files. I manually >> deleted this directory and then did another build, and it once again >> failed during the upload but this time with error 400. Checking the >> directory structure, it had once again created a 1.1-SNAPSHOT >> directory only containing metadata files. >> >> It might be unusual that we sometimes build snapshots after a version >> has been released, but it's something that will need to continue to >> occur. I'm wondering if this means that we just won't be able to use >> the "delete released snapshots" option -- I'm assuming that's the >> source of the problem. >> >> Any thoughts or suggestions on resolving this? > A bit weird. > As normally this option doesn't have any effect on the artifacts > deployment parts. > Do you deploy snapshots and release to the same repository ? >> >> Thanks, >> David > > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy > > -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy