Wayne, your answer sounds like it might solve my problem, but I am a new user
and am not sure of the syntax to implement your suggestion.

I am creating a buildnumber with a time stamp in the parent pom using the
buildnumber plugin.  I want to pass the resultant property, ${buildNumber},
to all the children to include in their manifests.  I have tried several
things, but have found no way to reference this property in the children
poms.

I have been through hundreds of postings and googled other items and this
question seems to come up a lot, but no one ever responds or their response
is too criptic for a novice to implement.

Your help would be appreciated.

Thanks
Wayne



Wayne Fay wrote:
> 
> Put the shared properties in profiles in the parent pom, include the
> children as <modules/> in the parent pom, and use the parent tag in
> the children to share properties with all your poms.
> 
> Or is there a specific reason this is not sufficient?
> 
> Wayne
> 
> On 5/2/07, Jared Blitzstein <[EMAIL PROTECTED]> wrote:
>> I have 5 projects that I want to build as a suite.  I created a multi-
>> module to do this and it's fine out of the box for just calling the
>> sub projects. But I need to be able to set variables in the multi-
>> module to pass in like the version, profile, and some other basic
>> things. But I also need to make sure each of these projects can live
>> on their own. I've read http://www.sonatype.com/book/pom-
>> relationships.html as well as the getting-started on mavens website
>> but they don't speak to what I'm trying to do. Can anyone point me in
>> the right direction?
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multi-module-passing-properties-to-children-tp10294239s177p16321438.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to