title: Maven scope test needs to resolve depdencies
body: <p>I have a dependency in my pom with <code>&lt;scope&gt;test&lt;/scope&gt;</code>. As I understood the scope concept of maven the dependency should only be required during test builds. Nevertheless maven trys to download the dependency during a <code>mvn package</code> which is why I get following build failure:</p>
  
  <pre><code>[INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.278 s
  [INFO] Finished at: 2016-04-19T22:11:59+02:00
  [INFO] Final Memory: 5M/15M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project my-module: Could not resolve dependencies for project com.mycompany.app:my-module:jar:1: Failure to find group-a:artifact-b:jar:tests:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -&gt; [Help 1]0 
  </code></pre>
  
  <p>I use following pom:</p>
  
  <pre><code>&lt;project&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;groupId&gt;com.mycompany.app&lt;/groupId&gt;
   &lt;artifactId&gt;my-module&lt;/artifactId&gt;
   &lt;version&gt;1&lt;/version&gt;
   &lt;dependencies&gt;
     &lt;dependency&gt;
       &lt;groupId&gt;group-a&lt;/groupId&gt;
       &lt;artifactId&gt;artifact-b&lt;/artifactId&gt;
       &lt;version&gt;1.0&lt;/version&gt;
       &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
   &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <ol>
  <li>Is this intended behavior of maven?</li>
  <li>Are there any mitigations to ignore the dependency during package/install/deploy builds? </li>
  </ol>
  
  <p>Any help is appreciated </p>