Ok so lets say i have a profile in my parent which is not activated. If i now call this profile with my child it will work right? I've tried it and it seems to work but i'm asking to be sure.
Jörg Schaible-2 wrote: > > 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: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21704915.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]
