I don't like to bump posts but maybe this one has been lost in the list traffic. Anybody ?
Le lundi 06 avril 2009 17:12:33, Paul a écrit : > Hi, > > Using maven-2.1.0 and having a multimodules project with the following > layout > > > parent-project > foo > foo-api > foo-flavourA > foo-flavourB > bar > bar-api > bar-flavourA > bar-flavourB > > I'm trying to add profiles that allows to skip flavourA and flavourB build. > > So I added two profiles with activation nodes in the parent project and > tried to use theses profiles in modules foo and bar to include/exclude > flavour modules. > > Using mvn help:active-profiles on the parent-project show actives profiles > as expected but the modules declarations in modules are ignored. > > I've read that the following issue is fixed in 2.1.0 but I'm not sure it > covers the very same use case : http://jira.codehaus.org/browse/MNG-3228 > > > Is this expected ? Am I doing something wrong ? > > /Paul > > > See pom snippets showing profiles declarations below : > > > parent-project pom : > ==================== > > <profiles> > <profile> > <id>flavourA</id> > <activation> > <property> > <name>!flavourA.skip</name> > </property> > </activation> > </profile> > <profile> > <id>flavourB</id> > <activation> > <property> > <name>!flavourB.skip</name> > </property> > </activation> > </profile> > </profiles> > > > foo pom : > ========= > > <profiles> > <profile> > <id>flavourA</id> > <modules> > <module>foo-flavourA</module> > </modules> > </profile> > <profile> > <id>flavourB</id> > <modules> > <module>foo-flavourB</module> > </modules> > </profile> > </profiles> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
