Re: maven3 profile activation by absense of property
Thanks everybody, it is now fixed. Joachim On 10/21/2010 01:57 PM, Frederic Camblor wrote: Hi ! With!key 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. myprofile !blah [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 Dierenwrote: 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: documentation skipDocs !true ... 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 On 10/20/2010 12:35 PM, Wendy Smoak wrote: On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera 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 -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven3 profile activation by absense of property
Hi ! With !key 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. myprofile !blah [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 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: > > > >documentation > > >skipDocs > !true > > > ... > > > > 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 > > > On 10/20/2010 12:35 PM, Wendy Smoak wrote: > > > >> On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera > >> 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 > > > > >
Re: maven3 profile activation by absense of property
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: documentation skipDocs !true ... 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 > On 10/20/2010 12:35 PM, Wendy Smoak wrote: > >> On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera >> 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 > >
Re: maven3 profile activation by absense of property
On 10/20/2010 12:35 PM, Wendy Smoak wrote: On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera 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
Re: maven3 profile activation by absense of property
On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera 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 may give you a workaround, and if it worked as 'present but empty' in Maven 2, a JIRA issue with a sample project would be the next step (assuming this isn't called out in the release/compatibility notes, I haven't checked.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven3 profile activation by absense of property
Could be a regression then. Create a test project and file a ticket. /Anders On Wed, Oct 20, 2010 at 11:32, Joachim Van der Auwera < joac...@triathlon98.com> wrote: > I am using the following profile > > > > documentation > > > !skipDocs > > > > documentation > > > > > 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? > > Thanks for the help, > Joachim > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >