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]

Reply via email to