title: Maven build with tests failing but JUnit runner tests passing?
body: <p>First off please excuse my possible ignorance, The maven way of doing things its quite new to me, if there is anything that I have not mentioned here please let me know and I will try to give you the information you need...</p>
  
  <p>So I am trying to build my webapp in Eclipse using maven, I have a test suite with the following</p>
  
  <pre><code>@RunWith(Suite.class)
  @Suite.SuiteClasses({
      // all my test classes
  })
  </code></pre>
  
  <p>this works fine and all the tests pass when I run the test by right click and run as Junit Test.</p>
  
  <p>When I run this as Maven build and with the goal of package a bunch of the tests fail???</p>
  
  <p>My maven surefire plugin is configured as follows </p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.16&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.16&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
          &lt;configuration&gt;
              &lt;excludes&gt;
                  &lt;exclude&gt;**/Test*.java&lt;/exclude&gt;
              &lt;/excludes&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/DynamoUnitTestSuite.java&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>This way it will exclude running the integration tests and only run what is in my test suite.</p>
  
  <p>Why do my tests fail when running maven build but not when running just the test suite???</p>