Thanks, so when i activate a profile by using the command line (ex.: mvn clean install -P int) within a child and the profile (int) is definied in the parent it should work right?
Jörg Schaible-2 wrote: > > Hi kuku, > > kukudas wrote at Mittwoch, 28. Januar 2009 13:37: > >> >> 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. > > No. If the profile is activated (i.e. by an activate element in the > profile > itself) in the child, none of the profile stuff of the parent is used. > Parents are resolved first (incl. profiles). If you activate a profile > from > command line the case is different, then the profile activation happens > before any of the POMs are resolved independently from an activate > section. > > - Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21706617.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org