Setting maven properties depending on the presence of other properties
<p>I have a maven property question I can't find referred to in the Docs.
From the command line I will input the property "from.command". This property will always be present.</p>

<pre><code>mvn deploy -Dfrom.command=COMMANDVALUE
</code></pre>

<p>Inside the pom.xml I will specify another property:</p>

<pre><code>  &lt;properties&gt;
    &lt;from.pom&gt;POMVALUE&lt;/from.pom&gt;
  &lt;/properties&gt;
</code></pre>

<p>This property will some times be there and other times be missing.</p>

<p>I want to have a third property named used.value</p>

<p>I want  used.value to be set to the value of "from.pom" if that property is present otherwise it should be set to the value of "from.command"</p>

<p>This need arrises because I need to run maven builds from another script and I don't want the script to have to inspect all pom files.</p>

<p>Is this possible?</p>