I saw in the Maven source code that the following behavior was taking place:
a <activeByDefault> profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: > On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: > > Hi, > > > > what version of maven are you using? There was a bug with default > > activation in maven 2.0 but that was fixed long ago in 2.0.1. > > I'm using maven 2.0.7 > > And I have some more insight about the issue: if I have an OTHER > profile that uses negatvie property based activation, my activeByDefault > profile gets deactivated somehow. > > Here is a POM that seem to trigger the bug: > > <profiles> > <profile> > <id>profile1</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > </profile> > <profile> > <id>profile2</id> > <activation> > <property> > <name>!something</name> > </property> > </activation> > </profile> > </profiles> > > Should I file a bug in JIRA or am I missing the obvious? > > -- > Julien > > > -Tim > > > > Julien Stern schrieb: > > >Hi list, > > > > > >It seems that a profile marked "activeByDefault" is never active... > > >Is that a bug or have I missed something? > > > > > >I haved defined a profile in a POM that is active by default, e.g: > > > > > ><profiles> > > > <profile> > > > <id>some-profile</id> > > > <activation> > > > <activeByDefault>true</activeByDefault> > > > </activation> > > > ... > > > </profile> > > ></profiles> > > > > > >"mvn install" does not take the profile into account > > >"mvn -Psome-profile install" takes the profile into account > > > > > >Is there something else to do in order to activate a profile > > >by default? > > > > > >Thanks, > > > > > >-- > > >Julien > > > > > >--------------------------------------------------------------------- > > >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] > > > > --------------------------------------------------------------------- > 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]
