Hi,

The proper way around this is: Use the release-plugin.

When you execute mvn release:prepare and mvn release:perform all the 
version-number in the parent-element of all modules get updated automatically.

Within the pom of the child-modules you remove the version-tag of the project, 
since all child-modules will inherit the version for the parent in a 
multi-module-project.

With kind regards,
  Marco Beelen
 

-----Original Message-----
From: Joshua ChaitinPollak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 7:22 PM
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






**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**********************************************************************

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

Reply via email to