why are you extending the pom?  just set the property in project.properties, and use 
the property in your project.xml for both the parent and child projects.

#project.properties snippit
myproperty=/usr/home/someplace

<!--parent project.xml snippit -->
<siteDirectory>${myproperty}</siteDirectory>

<!-- child project.xml snippit -->
<siteDirectory>${myproperty}/projectname</siteDirectory>


> -----Original Message-----
> From: Dan Tran [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 25, 2004 5:30 PM
> To: Maven Users List
> Subject: Re: Is pom.siteDirecotry inheritable?
> 
> 
> I added a xml element to my parent project and try to reuse it
> int my sub project via ${pom.myparentproperty} and ${myparentproperty}
> both methods return empty string..
> 
> Any more suggestions?
> 
> -Dan
> 
> ----- Original Message ----- 
> From: "Ryan Sonnek" <[EMAIL PROTECTED]>
> To: "Maven Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 25, 2004 2:45 PM
> Subject: RE: Is pom.siteDirecotry inheritable?
> 
> 
> sounds like a recursive call.  ${pom.siteDirectory} should 
> point to the
> current project's site directory, which references itself 
> again, etc, etc.
> if you want to "reuse" it, define another variable in the 
> parent project
> "mysitedirectory" and use it in both the parent and child:
> parent - ${mysitedirectory}
> child - ${mysitedirectory}/mysubprojectname
> 
> Ryan
> 
> > -----Original Message-----
> > From: Dan Tran [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 25, 2004 4:43 PM
> > To: Maven Users List
> > Subject: Is pom.siteDirecotry inheritable?
> >
> >
> > Hi I would like to reuse partent project's pom.siteDirectory
> > in my subproject
> >
> > like
> >
> >    <siteDirectory>${pom.siteDirectory}/mysubprojectname
> > </siteDirectory>
> >
> > is it supported?
> >
> > -Dan
> >
> 
> ---------------------------------------------------------------------
> 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]
> 
> 

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

Reply via email to