Still, my question remains: WHY isn't this profile activated? I don't want to have to add it to the command-line. This is a parent that will be used company-wide and I don't want all developers to have to add a profile to their command-lines.
I also don't want the plugin in there (cobertura) to run everytime, because on some of my modules (which have only no sources, that's why I wanted to activate this way) it kills the performance with the alternative life-cycle! There has got to be a way to get around this problem... On 10.06.2011 16:29, David Durham wrote: > I think the statement "profiles are not inherited" is not strictly > true. Activation with <file> does not work on an inherited basis. > But direct activation at the command line with -P does work, even if > the profile is defined in a parent pom. > > On Fri, Jun 10, 2011 at 9:03 AM, Asmann, Roland > <roland.asm...@adesso.at> wrote: > > OK, so why isn't this one activated? It should be imho... > > > > > > On 10.06.2011 15:53, Stephen Connolly 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 > >> > > > > -- > > 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 > -- 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