title: How to limit dependency scope in Maven
body: <p>I have a Maven project with tests using Mockito framework. I included mockito-core dependency in pom.xml.</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.mockito&lt;/groupId&gt;
    &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
    &lt;version&gt;2.7.22&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Will the mockito-core jar be added to production repository, even if it's used only for tests? How do I avoid downloading this jar in production environment (limiting it only to dev environments)?     </p>