Hello,

yes, you're right there - you could, as Cynthia mentioned, use 
${env.parentversion} and pass the env variable on the command line or set it as 
an environment variable in the system.

What we do is use a shell script to update the versions every time we make a 
new release - I'll send it as attachment.

 
David



> -----Original Message-----
> From: Joshua ChaitinPollak [mailto:[EMAIL PROTECTED] 
> Sent: 15 April 2008 19:22
> To: Maven Users List
> Subject: Re: Executing a hook before reading a POM
> 
> In this setup, you still need to refer to the version of the parent  
> pom, right?
> 
> We are just starting to use  multi-module pom, and are 
> realizing that  
> all of our modules are going to need to be updated with the parent- 
> pom's version every time we release a new version. Is there any way  
> around this?
> 
> 
> On Apr 15, 2008, at 7:22 AM, Bernhard David wrote:
> 
> > Hi,
> >
> > what we do is declare all global constants (version numbers 
> etc.) in  
> > one parent pom like this:
> >
> > <properties>
> >     <version.moudule-xxx>1.0</version.module-xxx>
> > </properties>
> >
> > then in the modules' pom declare it (or a descendent of it) as  
> > <parent>. Then you can just write
> >
> > <artifactId>module-xxx</artifactId>
> > <version>${version.module-xxx}</version>
> >
> > in the actual module pom.
> >
> > Maybe that will help solve your problem.
> >
> > Regards,
> >
> > David
> >
> >> -----Original Message-----
> >> From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED]
> >> Sent: 15 April 2008 12:30
> >> To: Maven Users List
> >> Subject: Re: Executing a hook before reading a POM
> >>
> >> Hi,
> >>
> >> use
> >>   <properties>
> >>     <myProperty>myValue</myProperty>
> >>   </properties>
> >> if you want to set fixed properties for the build process.
> >>
> >> You may also want to have a look at how to use profiles.
> >>
> >> regards,
> >>
> >> Stefan
> >>
> >> [EMAIL PROTECTED] wrote:
> >>> Hi to all,
> >>>
> >>> I am trying to find out how I can get maven to execute a
> >> hook before it reads the POM file. But it seems that unless
> >> you go in and modify the maven source code, at a user level,
> >> there is nothing to be done. I am trying to execute the hook
> >> since maven doesn't replace variables within the POM. And I
> >> need this information to be statically available within our
> >> internal repositories.
> >>>
> >>> 1. Is there a "smart" way to get maven to execute hooks?
> >>>
> >>> 2. Am I a little far fetched for trying to implement a hook
> >> to do something that Ant could do to pre-process the POM file?
> >>>
> >>> Thanks in advance,
> >>> Fernando
> >>>
> >>>
> >> 
> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>
> >> -- 
> >> best regards,
> >>
> >> Stefan Seidel
> >> software developer
> >> ________________________
> >> VUB Printmedia GmbH
> >> Chopinstraße 4
> >> D-04103 Leipzig
> >> Germany
> >> tel.    +49 (341) 9 60 50 07
> >> fax.    +49 (341) 9 60 50 92
> >> mail.   [EMAIL PROTECTED]
> >> web.    www.vub.de
> >>
> >> HRB Köln 24015
> >> UStID DE 122 649 251
> >> GF Dr. Achim Preuss Neudorf,
> >> Dr. Christian Preuss Neudorf
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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]
> >
> >
> 
> -- 
> Joshua ChaitinPollak | Software Engineer
> Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970
> 
> 
> 
> 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to