Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-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 973CEFB93 for ; Thu, 9 May 2013 06:04:34 +0000 (UTC) Received: (qmail 96852 invoked by uid 500); 9 May 2013 06:04:32 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 96779 invoked by uid 500); 9 May 2013 06:04:32 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 96760 invoked by uid 99); 9 May 2013 06:04:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 06:04:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.k.sundberg@gmail.com designates 209.85.220.48 as permitted sender) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 06:04:28 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp6so1869393pab.21 for ; Wed, 08 May 2013 23:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=bfmkX6/350IZlqE0fmJgTDJqTF1E9ziO4JbqYdP0gu4=; b=jjVhbq/KLzJLU8fdlOLHN9A1TiuBN9sC6ZLwZxed1anrZS7BiJXt5UZ0g3RAvB4Zs2 t0lWKm9z3xXtAa4CSBhJOYJjbrcIFdaFJsaNBYJ4AFooxk4r1qDGzOh1ysBjsE3j67EZ BRPgPig9cfe2Q5RRdombT1lBi5sMsP8E4YbCW+aYA9+cenT+e0Oi6axs1YCf6lj6nR1Y rtJgFGtm5Cmoru8r35lMjf1c8ANyiy4Wex3UEZueFmHusNchB2e3b7xB5biwHJF1DIAh ogLDcMtaUG/wWqxiAl91IQ2shfW5o3mTD97jjM6W7T3VavmKjmZw/qyHkhgX7oTssEB+ U/xA== X-Received: by 10.68.130.199 with SMTP id og7mr11127092pbb.132.1368079447996; Wed, 08 May 2013 23:04:07 -0700 (PDT) MIME-Version: 1.0 Sender: thomas.k.sundberg@gmail.com Received: by 10.68.85.161 with HTTP; Wed, 8 May 2013 23:03:47 -0700 (PDT) In-Reply-To: References: From: Thomas Sundberg Date: Thu, 9 May 2013 08:03:47 +0200 X-Google-Sender-Auth: rjSSt9fEX6MdSty9ThIINQdhg-s Message-ID: Subject: Re: org.codehaus.mojo:versions-maven-plugin:2.0:update-properties To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 8 May 2013 22:27, Stephen Connolly wrote: > On 8 May 2013 20:28, Thomas Sundberg wrote: > >> On 8 May 2013 21:13, Wayne Fay wrote: >> >> It works well for artifacts in Nexus that was deployed from Maven. >> >> Unfortunately, we have some artifacts that consist of zip files and >> >> has been generated from an Ant build. >> > >> > I assume the plugin queries your MRM and looks at the versions in >> > maven-metadata.xml. How are the zip files being deployed to your MRM? >> > Or are they just installed locally in ~/.m2, or what? >> > >> >> The files are uploaded to the Nexus server and are expected to be >> downloaded from it as well. If the maven-metadata is updated properly >> or not is something I need to check. >> >> >> My question is, does anybody know how an updated version is located by >> >> the version plugin? It seems to me that it doesn't just look at all >> >> versions for an artifact and then uses the largest number. >> > >> > I assume Stephen C. will give us an authoritative reply soon. >> >> I am hooping for an answer from Stephen. >> > > Looks at the versions in the metadata, and then looks at all the > dependencies that use that property and then looks for the highest common > version that is available for all those dependencies using the sorting rule > defined for the dependencies (behaviour is either undefined or throw an > error if the different dependencies have different sorting rules that > result in an effective different order... you'd need to check the code to > be sure) > Thanks /Thomas -- Thomas Sundberg M. Sc. in Computer Science Mobile: +46 70 767 33 15 Blog: http://thomassundberg.wordpress.com/ Twitter: @thomassundberg Better software through faster feedback --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org