Hi ! With <name>!key</name> I don't reproduce the problem with maven 3, but I reproduce it with mvnsh 0.10 (based on maven 3.0-alpha6) context history.
<profile> <id>myprofile</id> <activation> <property> <name>!blah</name> </property> </activation> </profile> [mvn 2.2.1] - mvn help:active-profiles >> shows myprofile is activated - mvn help:active-profiles -Dblah >> shows myprofile is deactivated - mvn help:active-profiles -Dblah=blah >> shows myprofile is deactivated [mvnsh (based on mvn 3.0-alpha6] - mvn help:active-profiles >> shows myprofile is activated - mvn help:active-profiles -Dblah >> shows myprofile is deactivated - mvn help:active-profiles -Dblah=blah >> shows myprofile is deactivated ... re-running mvn help:active-profiles shows myprofile is de-activated ! [mvn 3.0] - mvn help:active-profiles >> shows myprofile is activated - mvn help:active-profiles -Dblah >> shows myprofile is deactivated - mvn help:active-profiles -Dblah=blah >> shows myprofile is deactivated Frédéric On Wed, Oct 20, 2010 at 8:15 PM, Kees van Dieren <keesvandie...@gmail.com>wrote: > Joachim, > > Profiles can be activated by a property not having a certain value. This > includes the absence of a property. For you the profile would become: > > <profiles> > <profile> > <id>documentation</id> > <activation> > <property> > <name>skipDocs</name> > <value>!true</value> > </property> > </activation> > ... > </profile> > </profiles> > > Profile activation can easily be checked with: > mvn help:active-profiles -DskipDocs > mvn help:active-profiles -DskipDocs=true > mvn help:active-profiles -DskipDocs=false > > (not specifying a value makes it true). > > Regards, > > Kees > > -- > Squins | IT, Honestly > Oranjestraat 23 > 2983 HL Ridderkerk > The Netherlands > Phone: +31 (0)180 415559 > Mobile: +31 (0)6 30413841 > www.squins.com > http://twitter.com/keesvandieren > Chamber of commerce Rotterdam: 22048547 > Boeken voor school en werk bestel je op studieboekencenter.nl > 2010/10/20 Joachim Van der Auwera <joac...@progs.be> > > > On 10/20/2010 12:35 PM, Wendy Smoak wrote: > > > >> On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera > >> <joac...@triathlon98.com> wrote: > >> > >> > >>> However, since the switch to maven3 this does not worka anymore and > "mvn > >>> -DskipDocs install" will still include the "documentation" module. > >>> Do I have to do something different to make this work in maven3? > >>> > >>> > >> What happens if you do "-DskipDocs=abc" ? That will test the > >> difference between 'present but empty' and 'present (with a value)'. > >> > >> > > That doesn't seem to make a difference. > > > > I haven't seen this mentioned in the compatibility notes, so I guess it > is > > a bug (though it admittedly is a little documented feature). > > > > > > Thanks for the help, > > Joachim > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > >