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 AC6AB17213 for ; Sat, 11 Oct 2014 05:34:56 +0000 (UTC) Received: (qmail 43681 invoked by uid 500); 11 Oct 2014 05:34:56 -0000 Delivered-To: apmail-archiva-users-archive@archiva.apache.org Received: (qmail 43620 invoked by uid 500); 11 Oct 2014 05:34:56 -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 43606 invoked by uid 99); 11 Oct 2014 05:34:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2014 05:34:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of odeaching@gmail.com designates 209.85.213.181 as permitted sender) Received: from [209.85.213.181] (HELO mail-ig0-f181.google.com) (209.85.213.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2014 05:34:30 +0000 Received: by mail-ig0-f181.google.com with SMTP id r10so5159440igi.14 for ; Fri, 10 Oct 2014 22:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=VNGaaitEotRbhvpxWtkFRvGoIEM5aBsvm+idawCZC/E=; b=nYrYwWlmGZIsEnR67aDYl8be3S3CrwHz1+SLib1cnMAya87Xv5EwdULOE8FsHdqAdD 3/yjGrUEKCIUecMWg8q8qdE2IiVa2OI68xl+Dyigf7ANG0AM0Prun91j/9UMPMkr0xGT dAO4dIyu6LZRYfpJ2bpS7NP12t7RiSMUzTkxj36QCvymOZYsyDoGzJf5lv19zLXyFqMC VzoEDw/qU81zUq49xhyNMvL6nKoqpWY0IACM4zjBZWVuMiblBHVz5YPHGX3XAAjRqgE5 dqGFA62VjswCJ2nMn+rLhbeUeVpbZHPlfS4W7ab90ftML2d+EqDbJlrH8YJmkF+5AG5a sSxQ== MIME-Version: 1.0 X-Received: by 10.42.116.211 with SMTP id p19mr21964818icq.32.1413005669269; Fri, 10 Oct 2014 22:34:29 -0700 (PDT) Sender: odeaching@gmail.com Received: by 10.107.7.138 with HTTP; Fri, 10 Oct 2014 22:34:29 -0700 (PDT) In-Reply-To: <1412947093393.25108@oclc.org> References: <33358929B5AF884FBB9E19BAD7E49F4B09D1A56D@sal-exc-01.salmon.ltd.uk> <1F003FAC-DA72-4A74-9360-9398013F5BED@apache.org> <1412947093393.25108@oclc.org> Date: Sat, 11 Oct 2014 13:34:29 +0800 X-Google-Sender-Auth: tnHWkUHyDXwrguf3gr0H14Ge02Q Message-ID: Subject: Re: Archiva upgrade issues (related to issue MRM-1859) From: Deng Ching-Mallete To: "users@archiva.apache.org" Content-Type: multipart/alternative; boundary=14dae9cfc986fb84f905051f0448 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9cfc986fb84f905051f0448 Content-Type: text/plain; charset=UTF-8 Yep, that is correct. The properties file was getting created by one of the Maven libraries used in dependency resolution when browsing an artifact. Then upon viewing the artifacts tab, the properties file is being resolved as an artifact since it's not included in the list of excluded files (e.g. metadata files & checksums), but it's actually not so it fails the validation check. Thanks, Deng On Fri, Oct 10, 2014 at 9:18 PM, Nerderman,Adam wrote: > I was the one that brought this up and Deng was able to reproduce it and > created the issue. This had to do with if you try to view the artifacts tab > for a snapshot artifact in Archiva it is creating the > resolver-status.properties file in the data for some reason and then either > not ignoring it or not removing it. This makes it impossible to view the > actually files associated with a snapshot artifact in Archiva 2.1.1 and the > previous versions Richard mentioned. > ________________________________________ > From: Brett Porter on behalf of Brett Porter < > brett@apache.org> > Sent: Friday, October 10, 2014 12:00 AM > To: users@archiva.apache.org > Subject: Re: Archiva upgrade issues (related to issue MRM-1859) > > Hi Richard, > > Maybe Deng, one of the developers who filed this issue, can shed some > light. I'm not sure why that log would cause an issue (nor why > resolver-status.properties would be on the filesystem, since that's a Maven > local repository concept as far as I know). > > To your original problem: maybe you can get what you need from the > repository just using Maven conventions, rather than the REST API. For > example, the following Puppet module does similar actions to what you've > described: https://forge.puppetlabs.com/maestrodev/maven > > The structure of a Maven repository is predictable. As for versions - it > is intended that you keep deploying the "SNAPSHOT" version, and Maven takes > care of timestamping that in the repository. The maven-metadata.xml file > tracks the latest timestamp in use, and Archiva can be enabled to > automatically purge old versions. Does that help at all? > > Cheers, > Brett > > > On 10 Oct 2014, at 12:53 am, Richard Milner-Watts > wrote: > > > Hi Folks, > > > > I'm experiencing a bit of an issue with Archiva after upgrading that > appears to be issue MRM-1859 - however that issue is only mentioned against > version 2.1.1 - I'm experiencing it on versions 2.0.1, 2.1.0 and 2.1.1. > > > > Some quick background in what I'm trying to actually do, on one of our > projects here the development team have chosen to use Maven for > builds/dependency resolution - artifacts are then stored in Archiva. They > haven't been incrementing the X.X.X-SNAPSHOT version numbers properly, so I > may find anywhere from 10's to 100's of builds against a given SNAPSHOT > version. > > > > I'm trying to write a remote deployment framework which will pull > multiple artifacts out of Archiva (using Ant & bash) and store the latest > build of said artifacts at that particular point in time, which I can then > package up and distribute/deploy appropriately across disparate remote > servers. Having spent a fair bit of time trying to work out how to get an > artifact out of Archiva programmatically and onto the filesystem, I've > settled on the REST interface. I'm using > /restServices/archivaServices/browseService/artifactDownloadInfos/g/a/v/ to > get the JSON document with the download URL, parsing it and then > downloading the artifacts - so far so good. > > > > My development was done against a different Archiva installation that my > team use for a different project (Archiva 2.0.1 standalone, OpenJDK > 1.7.0.45, RedHat 6.4) and everything works as expected. I went to test > against the projects' Archiva and found they are running Archiva 1.3.6 > still - therefore the REST interfaces aren't available. Note that the > projects' Archiva is running on a Windows machine using the Oracle JRE > 1.7.0.67. > > > > So I decided to upgrade their Archiva to 2.1.1 to get the REST > functionality, migrating the repositories and user databases and > duplicating a small number of configuration tweaks they'd made to the out > of the box Archiva configuration (Archiva.xml, Jetty.xml). I experienced > the exact issue described in MRM-1859 ( > https://jira.codehaus.org/browse/MRM-1859) when trying to browse > artifacts via the web UI or via the REST interface. > > > > Fair enough, so I tried the same upgrade process to version 2.1.0 with > the same results. Alright, well I *know* 2.0.1 works as I have it working > elsewhere, so I upgraded to 2.0.1 the third time around and still had the > same issue... > > > > In my mind this potentially signifies three possible culprits: > > > > > > - The repository database itself or some of our customisations > to the archiva.xml configuration are causing this problem. > > > > - There's an issue with the Oracle JRE we are using (latest > 1.7, upgraded yesterday when I clocked that Archiva 2.x needs a 1.7 JRE) > > > > - There is a Windows specific issue here > > > > Does anyone have any potential solutions to suggest here, either to > solve my original problem without upgrading Archiva or as to why I'm having > issues with these resolver-status.properties files? > > > > Many thanks in advance for any help/suggestions. > > > > Richard Milner-Watts > > Infrastructure Architect > > > > Salmon Ltd * 2nd Floor * 64 Clarendon Rd * Watford * Herts * WD17 1DA > > Tel: +44 (0)1923 320000 * Fax: +44 (0)1923 320023 > > www.salmon.com > > > > Unique Approach * Unique Solutions > > > > > > ________________________________ > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. > > > > Salmon's Registered Address is: 27 Farm Street, London, W1J 5RJ. > Registered in England 2360867. > > > > > > > > This message has been scanned for viruses by BlackSpider MailControl - > www.blackspider.com > > > -- Maria Odea "Deng" Ching-Mallete | oching@apache.org | http://www.linkedin.com/in/oching --14dae9cfc986fb84f905051f0448--