title: Could not find artifact junit:unit:jar:5.0-SNAPSHOT
body: <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;5.0-SNAPSHOT&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Error</p>
  
  <blockquote>
    <p>Could not find artifact junit:junit:jar:5.0-SNAPSHOT -> [Help 1]</p>
  </blockquote>
  
  <p>Screenshot from IntelliJ</p>
  
  <p><a href="https://i.stack.imgur.com/q3Jt6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q3Jt6.png" alt="enter image description here"></a></p>
  
  <p>attempts: </p>
  
  <ol>
  <li><p>mvn clean and install didn't work</p></li>
  <li><p>File -> clean caches and restart didn't work</p></li>
  <li><p>deleting .m2 directory didn't work.</p></li>
  </ol>