Is it possible to pass null property's value in pom.xml?

Viewed 902

I have a property which is designed like -dVerbose in mvn dependency:tree plugin. It does not require any value. If it is specified then some additional work is done in my application's tests.

So in Maven failsafe plugin i would like to either set some value (does not matter which one, but not null) or set it to null depending on which Maven profile is active.

I tried something like this:

<systemPropertyVariables>
    <doNotInsertData>${null}</doNotInsertData>
</systemPropertyVariables>

or <doNotInsertData>null</doNotInsertData> or <doNotInsertData/>.

But unfortunately all of above leads to not null property value when i run maven goal. Is it possible at all to pass null-value with pom.xml?

0 Answers
Related