title: Maven (surefire) test plugin excludes not working
body: <p>I have following configuration in my pom.xml</p>
  
  <pre><code>&lt;build&gt;
    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.17&lt;/version&gt;
            &lt;configuration&gt;
                &lt;excludes&gt;
                    &lt;exclude&gt;**/DocumentChangeSubscriberTest.java&lt;/exclude&gt;
                &lt;/excludes&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
        (...)
  </code></pre>
  
  <p><code>DocumentChangeSubscriberTest</code> is an arquillian test that I want to run only in specified profile.
  When I type <code>mvn install</code> all tests are run, even <code>DocumentChangeSubscriberTest</code> that I want to exclude.
  How to exclude test from the default (anonymous) profile?</p>
  
  <p>I tried <code>&lt;includes&gt;&lt;include&gt;...</code> and it works fine - only included tests were run.</p>
  
  <p>I saw <a href="https://stackoverflow.com/questions/9461519/maven-surefire-test-plugin-runs-tests-even-if-they-are-excluded">maven surefire test plugin runs tests even if they are excluded:</a> but this is not working for me. I also tried many versions of <code>maven-surefire-plugin</code> without result. Any ideas? </p>