Maven - profile activation with variables
<p>I've got problem with auto-activation of my maven profile.
When I use variables (e.g. <strong>${project.basedir}</strong>) it doesn't work.</p>

<pre><code>    &lt;profiles&gt;
    &lt;profile&gt;
        &lt;id&gt;prof1&lt;/id&gt;

        &lt;activation&gt;
            &lt;file&gt;
                &lt;exists&gt;${project.basedir}\mark.txt&lt;/exists&gt;
            &lt;/file&gt;
        &lt;/activation&gt;
        &lt;build&gt;
            &lt;plugins&gt;
                &lt;plugin&gt;...
</code></pre>

<p>When I write path without variables, it works perfect:</p>

<pre><code>    &lt;profiles&gt;
    &lt;profile&gt;
        &lt;id&gt;prof1&lt;/id&gt;

        &lt;activation&gt;
            &lt;file&gt;
                &lt;exists&gt;C:\projects\trainings\own\MavenPrj\mark.txt&lt;/exists&gt;
            &lt;/file&gt;
        &lt;/activation&gt;
        &lt;build&gt;
            &lt;plugins&gt;...
</code></pre>

<p>The file C:\projects\trainings\own\MavenPrj\mark.txt of course exists.</p>

<p>My Maven Version is 3.0.4.</p>

<p>Regards
Piotrek</p>