Actually it was just a snippet ;-) The <version> was really meant to be in a <plugin> definition (I just got lazy). Although I could see one interested in, say, having a single inherited version when building multiple projects -- so I could see it's legitimate use.
In the end, it's hard to build a powerful tool that isn't also dangerous. You can cut your finger off w/ a skill saw, but that doesn't make it any less useful and necessary -- it is assumed that you will be careful. Cheers, -- Chris On 9/26/05, John Casey <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > this should work now (committed it this afternoon). However, I should > note that in Chris' email he was using model properties (POM-level > properties) to set the version of the POM...to me, this has a bad smell, > since the project version may be influenced by active profiles, etc. way > too easily, which in turn may cause a reproducability problem. > > With model properties and profile properties, you should be really > careful to avoid letting users override the sort of "core" project > information (groupId, artifactId, version, packaging, etc.) by simply > providing a profile in their settings.xml...at least, IMHO. > > Cheers, > > John > > Brett Porter wrote: > | I guess a lot of people are going to want to use dotted properties, so > | we should support it. > | > | It probably is attempting to do reflection on m2. > | > | - Brett > | > | > | On 9/26/05, Chris Berry <[EMAIL PROTECTED]> wrote: > | > |>Hi John, > |>Don't know if it's a bug but > |><properties> > |> <m2.version>2.0-beta-2-SNAPSHOT</m2.version> > |></properties> > |>..... > |><version>${m2.version}</version> > |> > |>does NOT work. > |> > |>But, without the "." in the property name, it does work. I.e. > |><properties> > |> <m2version>2.0-beta-2-SNAPSHOT</m2version> > |></properties> > |>..... > |><version>${m2version}</version> > |>This works. > |>Cheers, > |>-- Chris > |> > |>--------------------------------------------------------------------- > |>To unsubscribe, e-mail: [EMAIL PROTECTED] > |>For additional commands, e-mail: [EMAIL PROTECTED] > |> > |> > | > | > | --------------------------------------------------------------------- > | To unsubscribe, e-mail: [EMAIL PROTECTED] > | For additional commands, e-mail: [EMAIL PROTECTED] > | > | > | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFDOJALK3h2CZwO/4URAvnbAJ44JReEYzlyF4xXj7yXkYZQygRQkQCggPlt > 4Xwqr6brD0Ite8MQAdXE0yM= > =NauG > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]