Maven profiles with variable for properties
<p>I am studying MAVEN profiles and i have a question about seting properties with variables. At the moment, i am using the following configuration :</p>

<pre><code>&lt;profile&gt;
  &lt;id&gt;Action type D restriction&lt;/id&gt;
  &lt;activation&gt;
    &lt;property&gt;
      &lt;name&gt;actionType&lt;/name&gt;
      &lt;value&gt;D&lt;/value&gt;
    &lt;/property&gt;
  &lt;/activation&gt;
  &lt;properties&gt;
    &lt;restriction.actionType&gt;D&lt;/restriction.actionType&gt;
  &lt;/properties&gt;
&lt;/profile&gt;

&lt;profile&gt;
  &lt;id&gt;Action type W restriction&lt;/id&gt;
  &lt;activation&gt;
    &lt;property&gt;
      &lt;name&gt;actionType&lt;/name&gt;
      &lt;value&gt;W&lt;/value&gt;
    &lt;/property&gt;
  &lt;/activation&gt;
  &lt;properties&gt;
    &lt;restriction.actionType&gt;W&lt;/restriction.actionType&gt;
  &lt;/properties&gt;
&lt;/profile&gt;
</code></pre>

<p>My question is this ; is it possible to somehow use one profile with a variable to do the same job, something along the lines of :</p>

<pre><code>&lt;profile&gt;
  &lt;id&gt;Action type restriction&lt;/id&gt;
  &lt;activation&gt;
    &lt;property&gt;
      &lt;name&gt;actionType&lt;/name&gt;
      &lt;value&gt;[D,W]&lt;/value&gt;
    &lt;/property&gt;
  &lt;/activation&gt;
  &lt;properties&gt;
    &lt;restriction.actionType&gt;${project.profiles.profile.activation.value}&lt;/restriction.actionType&gt;
  &lt;/properties&gt;
&lt;/profile&gt;
</code></pre>

<p>Or something along those lines.</p>