Like Stephen said, profiles are not inherited. That being said, you would need to replicate the profile activation in all children poms
<profile> <id>default-code-coverage</id> <activation> <file> <exists>src/main/java</exists> </file> </activation> </profile> But as you would probably put this profiles only in those children that actually have "src/main/java", I believe you could take this activation config out and activate the profile with -Pdefault-code-coverage On Fri, Jun 10, 2011 at 10:53 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > profiles are not inherited... the results of activating them in the > reactor are inherited > > On 10 June 2011 14:48, Asmann, Roland <roland.asm...@adesso.at> wrote: > > Hi all, > > > > I have this profile defined in a parent-POM: > > > > <profile> > > <id>default-code-coverage</id> > > <activation> > > <file> > > <exists>src/main/java</exists> > > </file> > > </activation> > > </profile> > > > > Now, in several child-projects it will not be activated, because there > > are no sources (WAR, EAR or simple resource-projects). However, it is > > also not working on the projects that DO have sources... > > > > Can anybody tell me what I am doing wrong here? > > > > I'm running Maven 2.2.1. > > > > Thanks. > > > > -- > > Roland Asmann > > Senior Software Engineer > > > > adesso Austria GmbH > > Floridotower 26. Stock T +43 1 2198790-27 > > Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 > > A-1210 Wien M +43 664 88657566 > > E roland.asm...@adesso.at > > W www.adesso.at > > > > ------------------------------------------------------------- > > >>> business. people. technology. <<< > > ------------------------------------------------------------- > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >