Correct, and it's a bad idea. -K On Apr 2, 2010, at 6:15 PM, Scott Susslin wrote:
> I figured something like this was why it wasn't working. So sounds like, > given Maven 2, it can't work. True? > > > > ----- Original Message ---- > From: Justin Edelson <justinedel...@gmail.com> > To: Maven Users List <users@maven.apache.org> > Sent: Fri, April 2, 2010 4:05:10 PM > Subject: Re: Using variables in POM's version field > > Amongst other reasons, allowing runtime variable interpolation in the > coordinates would prevent the reactor from properly calculating a > multi-module build plan. The coordinates at the start of the build > must remain the coordinates throughout the build. > > On Apr 2, 2010, at 5:14 PM, Scott Susslin <goi...@yahoo.com> wrote: > >> Why? >> >> Also, is it possible? >> >> >> >> ----- Original Message ---- >> From: Justin Edelson <justinedel...@gmail.com> >> To: Maven Users List <users@maven.apache.org> >> Sent: Fri, April 2, 2010 12:05:32 PM >> Subject: Re: Using variables in POM's version field >> >> This is a bad idea. Don't do it. >> >> On Apr 2, 2010, at 2:21 PM, Scott Susslin <goi...@yahoo.com> wrote: >> >>> I'm trying to use the buildnumber plugin to control the version >>> field of a POM. >>> >>> <version>1.0.${buildNumber}-SNAPSHOT</version> >>> >>> The "package" phase works fine, creating a file with the parsed >>> value in the filename. The "install" and "deploy" don't seem to >>> parse the variable. When they run, I get something like the >>> following: >>> >>> [INFO] Installing PROJECT/artifact-0.1.334-SNAPSHOT.swc to ~.m2/ >>> repository/PROJECT/artifact/0.1.${buildNumber}-SNAPSHOT/ >>> artifact-0.1.${buildNumber}-SNAPSHOT.swc >>> >>> Anyone have any experience with this? >>> >>> Thanks >>> - Scott >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org