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 C0C14692B for ; Wed, 1 Jun 2011 22:23:38 +0000 (UTC) Received: (qmail 30641 invoked by uid 500); 1 Jun 2011 22:23:36 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 30561 invoked by uid 500); 1 Jun 2011 22:23:36 -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 30553 invoked by uid 99); 1 Jun 2011 22:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 22:23:36 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of russt@releasetools.org designates 67.222.39.55 as permitted sender) Received: from [67.222.39.55] (HELO oproxy2-pub.bluehost.com) (67.222.39.55) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Jun 2011 22:23:30 +0000 Received: (qmail 21625 invoked by uid 0); 1 Jun 2011 22:23:09 -0000 Received: from unknown (HELO box526.bluehost.com) (74.220.219.126) by oproxy2.bluehost.com with SMTP; 1 Jun 2011 22:23:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=releasetools.org; h=Received:Mime-Version:Message-Id:In-Reply-To:References:Date:To:From:Subject:Cc:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=SxvbEHn6GQRj8LYVPOPWLRtKUhAso58a5OOk2fCbLffSwMlElB71Cvx9iTz+b/CaTOacaMJdTECtadmDQ62SKbNY47hAIX/wU+UOf6FUE/UK5QmJ956Qx+rdrkAYRcsk; Received: from enrico.iii.com ([205.227.88.253] helo=[10.1.125.126]) by box526.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QRtoj-0002NB-4O; Wed, 01 Jun 2011 16:23:09 -0600 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <1E67D6D2-3053-4BD2-A653-89AFC75E67B3@maven.org> <562346791003120521v4722ed58x2fe606df58e741a8@mail.gmail.com> <31AA3265EBDE914CB013E2EA261EEF6E4078D7@smbfiscbd01.FNFIS.COM> <562346791003120656v5c4238a2vbca68b79632c1711@mail.gmail.com> <1301142100158-4265445.post@n5.nabble.com> Date: Wed, 1 Jun 2011 15:23:07 -0700 To: "Maven Users List" From: Russ Tremain Subject: Re: Maven 3.0 Artefact/Dependency version discussion request Cc: Maven Users List , manfred@mosabuam.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Identified-User: {10059:box526.bluehost.com:release5:releasetools.org} {sentby:smtp auth 205.227.88.253 authed with russt+releasetools.org} At 9:26 PM +0200 5/29/11, Arnaud H=E9ritier wrote: >For now it is just impossible to use properties in GAV for various technica= l >and also philosophical reasons. I still don't see why the maven deployment plugin cannot be responsible for= hardening artifact properties inside deployed poms. The help plugin goal help:effective-pom does this for example. This would effectively synchronize the external location of the artifact= with the contents of the artifact's pom. /r >You may not be agree with the philosophy behind this choice but it is sure >that for now it is more secure in Maven to avoid this usage as it creates >many issues. > >About the philosophy even if I can be agree that having in the project >version the one of the SCM may be useful it is with really few SCMs. >For exemple with CVS it is impossible as each file has a different version. >And For a DSCM like Git & co your version will be a hash and thus you won't >be able to sort them. > >Arnaud > > >On Thu, May 26, 2011 at 5:24 PM, Manfred Moser wrote= : > >> Why dont you use the buildnumber plugin? That might be able to do it for >> you.. >> >> http://mojo.codehaus.org/buildnumber-maven-plugin/ >> >> > For what it's worth, I agree with you both (version strings should be >> > controlled via the -ahem- version control system), but I am willing to >> > allow Maven (more to the point, the maven-release-plugin) to take care >> > of the version strings for me. >> > >> > However, if you don't want to, you can still do it yourself with Maven >> > 3 ... but you *can't* do it with properties at the command-line; you >> > *will* need to update the poms. Just do it outside of maven before >> > you perform the final build - should not be hard. If doing that is >> > too much to ask ... then, yeah, Maven may not be the right framework >> > for you. But consider that you will need to do *something* similar -- >> > either you write your own around maven, or you write your own around >> > some other system. >> > >> > On Tue, May 17, 2011 at 11:12 AM, Russ Tremain >> > wrote: >> >> +1. >> >> >> >> this is the major reason I won't be upgrading to maven 3. >> >> >> >> I do think that versions should be fixed at maven deploy time - i.e., >> >> when artifacts are deployed to the repository. >> >> >> >> -Russ >> >> >> >> At 5:21 AM -0700 3/26/11, bryan.dollery wrote: >> >>>Hi, >> >>> >> >>>I am also getting grief from maven for using variables in my version >> >>> fields. >> >>>For me, this is unavoidable. Let me explain... >> >>> >> >>>In my parent pom I have: >> >>> >> >>>${productVersion} >> >>> >> >>>And in my properties I have: >> >>> >> >>> 0-SNAPSHOT >> >>> 13.0.${productRevision} >> >>> >> >>>On a developer's machine, this produces a version number of >> >>> >> >>> 13.0.0-SNAPSHOT >> >>> >> >>>Which is exactly what I want. >> >>> >> >>>However, in my hudson CI server, as part of the maven command I have: >> >>> >> >>> -DivpnRevision=3D$SVN_REVISION-nt3 >> >>> >> >>>The $SVN_REVISION variable is provided by hudson. It contains the svn >> >>>revision number that has just been built, and the '-nt3' bit is the >> >>>environment it was built for. >> >>> >> >>>I do this because subversion is my revision control system and it, >> >>> rightly, >> >>>controls the revision number (the clue as to it's purpose is in it's >> >>> name). >> >>>This is not a job I want to hand off to maven, for many reasons. >> >>> >> >>>If I use maven 3 for my builds, then my IDEs (both eclipse and intelli= j) >> >>> are >> >>>totally messed up -- maven 3 messes up the classpath because it can't >> >>> deal >> >>>with the variables. So, I'm stuck on maven 2. >> >>> >> >>>Now, I don't see this as providing the slightest obstacle to my abilit= y >> >>> to >> >>>get repeatable builds. Rather, it's the opposite -- if I want to repea= t >> >>> a > > >>>build all I have to know is the subversion revision number of the bui= ld >> >>> I >> >>>want and I can check out that revision and rebuild to recreate an exac= t >> >>> copy >> >>>of the original. >> >>> >> >>>Just because maven thinks that an alternative approach is 'convention' >> >>>doesn't mean that I shouldn't be able to achieve this. CoC is supposed >> >>> to >> >>>allow one the choice of following convention, but provide the ability = to >> >>> use >> >>>configuration where the convention does not fit one's requirements. >> >>> >> >>>So, what to do? >> >>> >> >>>Bryan >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> > For additional commands, e-mail: users-help@maven.apache.org >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org