Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 62745 invoked from network); 15 Jul 2010 03:33:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 03:33:05 -0000 Received: (qmail 98542 invoked by uid 500); 15 Jul 2010 03:33:04 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 98179 invoked by uid 500); 15 Jul 2010 03:33:02 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 98172 invoked by uid 99); 15 Jul 2010 03:33:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 03:33:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rwonly@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pw0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 03:32:53 +0000 Received: by pwj9 with SMTP id 9so123425pwj.13 for ; Wed, 14 Jul 2010 20:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=jmMswwfyYjWJsf+xhBhHOS4IFBAmnQrnj8X3bjwTojE=; b=ctW/AK9Z47UXdl1GYrds+Mif30806I7esT0SG1IeUeYh2xPIaAoJvp1GvpRr2sPxwe /54usTpfI3wrZzSDABKcQzg3+xqF9uwlRfISpt7tc5HYlvAFWMcAevpuflO33R8L4bSQ 9LGQaCG/hu5EQmUZ7kSi+o5BLeBLUQt9Vp7yw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Oa8/Mu/lbgoI/KhRJR05c6hDu0LlaiRD3I0OX+yA0Qe1cNl956cuYLDOTvd4YGNnkW L0YgVjsbgT0yFQFPq3Z5P719LpuZNpS8bGvaccVnZ0wKwZqiaugsskecg+IZupPSvF4j RyLJne1zMjUPvwdz92YUqtcfXu861B+N4eCAI= MIME-Version: 1.0 Received: by 10.142.223.14 with SMTP id v14mr4696696wfg.44.1279164751750; Wed, 14 Jul 2010 20:32:31 -0700 (PDT) Received: by 10.142.200.16 with HTTP; Wed, 14 Jul 2010 20:32:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Jul 2010 11:32:31 +0800 Message-ID: Subject: Re: ${project.version} is a problem.. From: Rex Wang To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=000e0cd2579aa324ff048b64c0e4 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2579aa324ff048b64c0e4 Content-Type: text/plain; charset=ISO-8859-1 2010/7/15 David Jencks > > On Jul 13, 2010, at 7:56 PM, Rex Wang wrote: > > Hi, > > I suggest we stop using ${project.version} in 3.0's pom. > This maven variable will magicly change when I create a new sub-project > which has it own version. > For example, > When I create a new server assembly "abc" under the assemblies project, and > the abc's pom has it own version 3.0.0.0: > > org.apache.geronimo.assemblies > assemblies > 3.0-M1 > > > c.i.w.assemblies > abc > 3.0.0.0 > server-assembly > > Then, in its effective pom, maven will replace all the ${project.version} > defined in parent pom with 3.0.0.0 > > I think we use ${geronimoVersion} instead and specify geronimoVersion > explicitly in root pom. > > Thoughts? > > > I think this is a really bad idea. In your example above, you should not > have the explicit version 3.0.0.0 > > > Generally, if you want a different version for a particular project, put > the project in a different tree without a file system parent pom. > It will save a lot of time to create a custom assembly with geronimo's parent pom..and if all the sub-poms can not have its version and must use {project.version}, which is actually the geronimo root pom's version. What's the difference/risk between using a geronimoVersion property and that? Actually, geronimoVersion has already been used in 3.0-m1 & trunk... -Rex > There are a few special cases like the bundles.... even those probably > shouldn't have a file system parent pom (not actually sure if they do right > now). > > thanks > david jencks > > > -- > Lei Wang (Rex) > rwonly AT apache.org > > > -- Lei Wang (Rex) rwonly AT apache.org --000e0cd2579aa324ff048b64c0e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2010/7/15 David Jencks <david_jencks@yahoo.com&g= t;

= On Jul 13, 2010, at 7:56 PM, Rex Wang wrote:

Hi,

I suggest we stop using ${project.version} in 3.0's pom= .
This maven variable will magicly change when I create a new sub-project whi= ch has it own version.
For example,
When I create a new server assemb= ly "abc" under the assemblies project, and the abc's pom has = it own version 3.0.0.0: =A0=A0=A0 <parent>
=A0=A0=A0=A0=A0=A0=A0 <groupId>org.apache= .geronimo.assemblies</groupId>
=A0=A0=A0=A0=A0=A0=A0 <artifactI= d>assemblies</artifactId>
=A0=A0=A0=A0=A0=A0=A0 <version>= 3.0-M1</version>
=A0=A0=A0 </parent>
=A0=A0=A0
=A0=A0=A0 <groupId>c.i.w.assemblies</groupId>
= =A0=A0=A0 <artifactId>abc</artifactId>
=A0=A0=A0 <version= >3.0.0.0</version>
=A0=A0=A0 <packaging>server-assembly&l= t;/packaging>

Then, in its effective pom, maven will replace all the ${project.versio= n} defined in parent pom with 3.0.0.0

I think we use ${geronimoVersi= on} instead and specify geronimoVersion explicitly in root pom.

Thoughts?

I think this is a real= ly bad idea. =A0In your example above, you should not have the explicit ver= sion <version>3.0.0.0</version>
=A0

Generally, if you want a different= version for a particular project, put the project in a different tree with= out a file system parent pom. =A0
It will save a lot of time to create a custom assem= bly with geronimo's parent pom..and if all the sub-poms can not have it= s version and must use {project.version}, which is actually the geronimo ro= ot pom's version. What's the difference/risk between using a geroni= moVersion property and that? Actually, geronimoVersion has already been use= d in 3.0-m1 & trunk...

-Rex
=A0
There are a few special case= s like the bundles.... even those probably shouldn't have a file system= parent pom (not actually sure if they do right now).

thanks
david jencks


--
Lei Wang (Rex)
rwonly AT apache.org




--
Lei Wang (Rex)
rwonly AT apach= e.org
--000e0cd2579aa324ff048b64c0e4--