Hi Jirong, These properties are defined in top-level parent POM which I have no right > to > change. How can I overwrite these values in my project?
A child POM can overwrite the value of a property defined in a parent (unlike properties in Ant). So it should be fine to just put a <properties> section in your child POM and set the values to whatever you want. If you have multiple projects that all need the same overridden values, create an intermediate parent POM for your stuff that extends the top-level parent, then have all your projects extend your intermediate parent. Regards, Curtis On Fri, Jun 1, 2012 at 12:50 PM, hujirong <[email protected]> wrote: > These properties are defined in top-level parent POM which I have no right > to > change. How can I overwrite these values in my project? I don't use these > properties directly. > > <wid.runtimes>C:/IBM/WID7/runtimes</wid.runtimes> > <was.home>C:/IBM/WID7_WTE/runtimes/bi_v7</was.home> > > Thanks > Jirong > > -- > View this message in context: > http://maven.40175.n5.nabble.com/How-to-overwrite-property-values-defined-in-parent-POM-tp5710554.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] > >
