title: Maven Failsafe Plugin is always skipping integration tests
body: <p>I am attempting to configure my Maven project to have unit tests and integration tests. The unit tests are already working fine using the Maven Surefire plugin and are named according to the pattern <code>*Test.java</code>. </p>
  
  <p>After adding the Failsafe plugin, like so:</p>
  
  <pre><code>         &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.18.1&lt;/version&gt;
              &lt;dependencies&gt;
                &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.maven.surefire&lt;/groupId&gt;
                  &lt;artifactId&gt;surefire-junit47&lt;/artifactId&gt;
                  &lt;version&gt;2.18.1&lt;/version&gt;
                &lt;/dependency&gt;
              &lt;/dependencies&gt;
              &lt;configuration&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*IT.java&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;id&gt;integration-test&lt;/id&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;integration-test&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
            &lt;/plugin&gt;
  </code></pre>
  
  <p>I added an integration test named <code>SomeTestIT.java</code>. However, when I run:</p>
  
  <pre><code>mvn failsafe:integration-test
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building MyApp 1.0
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default-cli) @ MyApp ---
  [INFO] Tests are skipped.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.368 s
  [INFO] Finished at: 2015-03-04T14:43:50-06:00
  [INFO] Final Memory: 11M/219M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>My test class (buried a few package levels deep beneath the test hierarchy) looks something like:</p>
  
  <pre><code>package com.example.my.package;
  
  import org.junit.Test;
  import org.junit.Assert;
  import com.example.my.package.SomeService;
  
  import org.junit.runner.RunWith;
  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  import org.springframework.beans.factory.annotation.Autowired;
  
  @RunWith(SpringJUnit4ClassRunner.class)
  public class SomeTestIT
  {
      @Autowired
      private SomeService target;
  
      @Test
      public void testTest()
      {
          Assert.assertTrue(false);
      }
  
      @Test
      public void basicListTest()
      {
          Assert.assertNotNull(target);
      }
  }
  </code></pre>
  
  <p>Where the tests are stubs to make sure that I have the Maven integration working.</p>
  
  <p>I have ensured that:</p>
  
  <ul>
  <li>My POM includes a direct, test scoped dependency on JUnit.</li>
  <li>I have tried the plugin configuration both with and without an explicit test runner dependency.</li>
  <li>I have tried the configuration above both with and without an explicit include pattern (on the assumption that my class ought to have been picked up by the defaults).</li>
  </ul>
  
  <p>Nonetheless, the tests never actually run. Is there anything else necessary to get the integration tests running?</p>