Maven Clean: excluding directory inside target from being deleted
<p>I have tried many variants but could not make this work. One example (child <code>pom.xml</code>):</p>

<pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
        &lt;filesets&gt;
            &lt;fileset&gt;
                &lt;directory&gt;target&lt;/directory&gt;
                &lt;useDefaultExcludes&gt;true&lt;/useDefaultExcludes&gt;
                &lt;excludes&gt;
                    &lt;exclude&gt;myFolder&lt;/exclude&gt;
                &lt;/excludes&gt;
            &lt;/fileset&gt;
        &lt;/filesets&gt;
    &lt;/configuration&gt;
&lt;/plugin&gt;
</code></pre>

<p>Maven always tries to delete my folder. Why?</p>