title: Maven: I Don't want to download default junit jar in .m2 directory
body: <p>I deleted and clean all files and folders under <strong>c:\users\myuser.m2\repository</strong> directory.</p>
  
  <p>Then I ran <code>mvn clean install</code> command with a simple <strong>pom</strong> like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.daniel&lt;/groupId&gt;
      &lt;artifactId&gt;hola&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;maven.compiler.version&gt;3.7.0&lt;/maven.compiler.version&gt;
      &lt;/properties&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven.compiler.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;${java.version}&lt;/source&gt;
                      &lt;target&gt;${java.version}&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>How can I avoid or exclude the download of the folder <em>junit</em> and its files under <strong>.m2</strong> directory?</p>
  
  <p><a href="https://i.stack.imgur.com/2c9im.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2c9im.png" alt=".m2 junit directory"></a></p>