title: maven-compiler-plugin exclude
body: <p>I have a following problem.
  I would like to exclude some .java files (**/jsfunit/*.java) during the test-compile phase and on the other side I would like to include them during the compile phase (id i start tomcat with tomcat:run goal)</p>
  
  <p>My pom.xml</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
                   &lt;!-- &lt;excludes&gt;
                       &lt;exclude&gt;**/*JSFIntegration*.java&lt;/exclude&gt;
                   &lt;/excludes&gt; --&gt;                    
              &lt;/configuration&gt;
             &lt;executions&gt;
             &lt;!-- &lt;execution&gt;
                          &lt;id&gt;default-compile&lt;/id&gt;
                          &lt;phase&gt;compile&lt;/phase&gt;
                          &lt;goals&gt;
                            &lt;goal&gt;compile&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;includes&gt;
                                   &lt;include&gt;**/jsfunit/*.java&lt;/include&gt;
                              &lt;/includes&gt;
                          &lt;/configuration&gt;
                 &lt;/execution&gt;--&gt;
                &lt;execution&gt;
                          &lt;id&gt;default-testCompile&lt;/id&gt;
                          &lt;phase&gt;test-compile&lt;/phase&gt;
                          &lt;configuration&gt;
                              &lt;excludes&gt;
                                  &lt;exclude&gt;**/jsfunit/*.java&lt;/exclude&gt;
                              &lt;/excludes&gt;
                          &lt;/configuration&gt; 
                          &lt;goals&gt;
  
                  &lt;goal&gt;testCompile&lt;/goal&gt;
                          &lt;/goals&gt;
                  &lt;/execution&gt;                  
               &lt;/executions&gt;
  
          &lt;/plugin&gt;
  </code></pre>
  
  <p>But it does not work : exclude in default-testCompile execution does not filter these classes.
  If I remove the comments then all classes matched **/jsfunit/*.java would be compiled but only if I touch them!</p>