views:

17

answers:

1

Let's say I have a property foo defined in my parent POM. Is it possible to access the "foo" propery in any of the children?

To give you a bit of context, I am working on a multi-module maven project with inheritance.

I did search the web and some forums for a while and could not find the answer.

Many thanks in advance.

+2  A: 

Yes, they are inherited by children poms. Did it not work when you tried it out?

wds
I've discovered that I had a small typo in the child pom. The version number of the parent POM was incorrect which caused the child not to be able to fetch its parent's properties. It is working now.
Guillaume
@Guillaume glad to hear you got it working. I hope I at least pointed you in the right direction then. :-)
wds