Property inheritance does exist?

2013-02-07 Thread Graf László
Hello, I try to port an existing ANT based build system to Maven. I set in my root POM (A) the org.codehaus.mojo:properties-maven-plugin to read all required properties from an existing property file. That works fine. But when I create a new Maven module (B) where I set its parent to be A, it

Property inheritance does exist?

2013-02-07 Thread Graf László
Hello, I try to port an existing ANT based build system to Maven. I set in my root POM (A) the org.codehaus.mojo:properties-maven-plugin to read all required properties from an existing property file. Of course, this property file was specified relative to the A project. That works fine. But

Re: Property inheritance does exist?

2013-02-07 Thread Ansgar Konermann
Property inheritance works for properties you put into the properties section of a parent pom. The m-build-helper-p creates properties dynamically *after* maven already executed pom parsing and property inheritance. I. e.: inheriting dynamic properties does not work. HTH Ansgar Am 07.02.2013

Re: Property inheritance does exist?

2013-02-07 Thread Ansgar Konermann
Am 07.02.2013 21:49 schrieb Ansgar Konermann ansgar.konerm...@googlemail.com: Property inheritance works for properties you put into the properties section of a parent pom. The m-build-helper-p s/build-helper/properties/ creates properties dynamically *after* maven already executed pom

Re: Property inheritance does exist?

2013-02-07 Thread Stephen Connolly
Please take a couple of minutes to read my answer to a very similar question on stack overflow http://stackoverflow.com/questions/14725197/reading-properties-file-from-pom-file-in-maven/14727072#14727072 It should hopefully make things a little clearer -Stephen On Thursday, 7 February 2013,