Hi kuku,

kukudas wrote at Mittwoch, 28. Januar 2009 09:24:

> 
> I have read in the documentation that the following elements get inherited
> (merged) :
> 
>     * dependencies
>     * developers and contributors
>     * plugin lists (including reports)
>     * plugin executions with matching ids
>     * plugin configuration
>     * resources
> 
> Is it possible to inherit other elements too like certain profiles ?
> Thanks in advance .. kuku

Profiles are not inherited, they get activated. I.e. if a profile get's
activated in a parent pom, anything that is part of this profile definition
will be inherited as if it had been declared outside of the profile.
However, the activation of the profile is inherited i.e. if you child POM
declares a profile with the same profile id but without any activation
section, it is nevertheless active and you can add or modify other POM
elements.

Those commands will help you to visualize the effects:

mvn help:active-profiles
mvn help:effective-pom

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to