title: maven error - package org.junit does not exist
body: <p>I got a little trouble using maven and junit.
  Running junit test on its own works perfect, but building with Maven <code>mvn clean test</code> fails. I made sure that all tests are within "src/test/java" and all sources are within "src/main/java", so junit can find them (regarding to other questions this was the problem in many other cases). </p>
  
  <p>So does anybody knows why I this is not working for me?</p>
  
  <h2>Error Message snipped:</h2>
  
  <pre><code>/D:/pathToProject/myProject/src/test/java/myPackage/MyFile.java:[5,17] package org.junit does not exist
  </code></pre>
  
  <h2>Pom.xml Snipped:</h2>
  
  <pre><code>&lt;...project information.../&gt;
    &lt;build&gt;
          &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source /&gt;
                      &lt;target /&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;plugins&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.11&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>