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 <[email protected]>

> On 10/20/2010 12:35 PM, Wendy Smoak wrote:
>
>> On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera
>> <[email protected]>  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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to