Is it possible for a child POM to inherit profiles defined in the parent POM? If so, how?
+1
A:
It's not just possible, it's mandatory. If you declare a parent POM, you get all its profiles.
bmargulies
2010-09-12 15:37:11
+3
A:
Profiles defined in a parent POM are inherited in a child POM extending the parent, there is nothing to do. And just in case, the Maven Help Plugin has very useful goals allowing to deal with profiles:
help:active-profiles
: lists the profiles which are currently active for the build.help:all-profiles
: lists the available profiles under the current project.
Pascal Thivent
2010-09-12 15:39:42
It was sort of an add-on to your answer (an example), not really an answer in its own right. Then I realized I had misread the OP question.
Justin
2010-09-13 15:49:55
@Justin Ok, got it now :)
Pascal Thivent
2010-09-13 15:56:43
The only probmlem, that in child profiles the help:active-profiles do not show inherited profile, which is misleading I think.
Gábor Lipták
2010-09-30 15:55:33