Re: How set property from parent pom.xml in child pom.xml

2007-04-16 Thread Maria Odea Ching

Hi,

I don't think you can do that in maven. AFAIK, properties are not 
inherited from the parent pom

and you cannot also do the other way around (child to parent).

Thanks,
Deng

Depthblue wrote:

Hi,

I have one parent.pom with list of properties




4.0.0
pom
WebAd
0.0.1
   .


${project.version}
${basedir}
${rootDirectory}/src
${rootDirectory}/test
${testDirectory}/resources





And I have second child pom.xml. I can read property ${myVersion} in this
pom. But I would want to set this property in this (child) pom.xml and then
I would want to read this changed property in parent pom.xml.

How can i do this?

Thans Tomas
  



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



How set property from parent pom.xml in child pom.xml

2007-04-16 Thread Depthblue

Hi,

I have one parent.pom with list of properties




4.0.0
pom
WebAd
0.0.1
   .


${project.version}
${basedir}
${rootDirectory}/src
${rootDirectory}/test
${testDirectory}/resources





And I have second child pom.xml. I can read property ${myVersion} in this
pom. But I would want to set this property in this (child) pom.xml and then
I would want to read this changed property in parent pom.xml.

How can i do this?

Thans Tomas
-- 
View this message in context: 
http://www.nabble.com/How-set-property-from-parent-pom.xml-in-child-pom.xml-tf3584519s177.html#a10016314
Sent from the Maven - Users mailing list archive at Nabble.com.