Support for maven profiles with multiple parent pom hierarchy

Hi, 
For a complex project, with a pom hierarchy, profiles are usually defined in the parent pom. When building any subpackage I want to be able to browse profiles defined in any parent pom.xml

See this project: https://github.com/javaee-samples/javaee7-samples

javaee7-samples/pom.xml <- parent
javaee7-samples/cdi/pom.xml
javaee7-samples/cdi/events/pom.xml 

When building the latter I want to use a profile defined in the parent pom.xml

PS. This is my first, more serious bash fiddling since ages - any feedback welcome