title: Maven not downloading dependencies
body: <p>I'm trying to get Maven to download dependencies. I'm using the commands I believe you are supposed to use, and this is just pure command line, no IDE involvement, but it still isn't happening.</p>
  
  <p>The problem is also with my own project, but I'll use this one by someone else as an example: <a href="https://github.com/stephanrauh/BeyondJava.net-Articles/tree/master/MethodModificationWithASM" rel="nofollow noreferrer">https://github.com/stephanrauh/BeyondJava.net-Articles/tree/master/MethodModificationWithASM</a></p>
  
  <p>I've tried the following commands:</p>
  
  <pre><code>mvn compile
  mvn test
  mvn package
  mvn install
  mvn dependency:resolve
  </code></pre>
  
  <p>and all appear to run correctly, even going so far as to claim to have successfully downloaded dependencies:</p>
  
  <pre><code>[INFO]
  [INFO] The following files have been resolved:
  [INFO]    javassist:javassist:jar:3.12.1.GA:compile
  [INFO]    org.ow2.asm:asm:jar:5.0.3:compile
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  16.690 s
  [INFO] Finished at: 2020-01-13T16:13:34Z
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>but when I try to actually run the compiled program, I get an error:</p>
  
  <pre><code>C:\BeyondJava.net-Articles\MethodModificationWithASM&gt;java -jar target\MethodModificationWithASM-0.0.1-SNAPSHOT.jar
  Error: Unable to initialize main class de.beyondjava.demos.bytecode.Main
  Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
  </code></pre>
  
  <p>and the same when I try to run from the <code>.class</code> files instead of the jar. And the error is correct: the asm jar is in fact missing:</p>
  
  <pre><code>C:\BeyondJava.net-Articles\MethodModificationWithASM&gt;dir /s *.jar
   Volume in drive C is Windows
   Volume Serial Number is 04EE-7EB0
  
   Directory of C:\BeyondJava.net-Articles\MethodModificationWithASM\target
  
  13/01/2020  16:01             8,144 MethodModificationWithASM-0.0.1-SNAPSHOT.jar
                 1 File(s)          8,144 bytes
  
       Total Files Listed:
                 1 File(s)          8,144 bytes
                 0 Dir(s)  164,672,442,368 bytes free
  </code></pre>
  
  <p>nor has it been squirreled away anywhere else; I searched the entire hard disk.</p>
  
  <p>The <code>pom.xml</code> seems to specify the dependency okay, and Maven seems to be happy that it has done so:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    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;de.beyondjava.demos.bytecode&lt;/groupId&gt;
    &lt;artifactId&gt;MethodModificationWithASM&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;MethodModificationWithASM&lt;/name&gt;
    &lt;description&gt;This demo shows how to create and run byte code in a Java program.
  &lt;/description&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.ow2.asm&lt;/groupId&gt;
        &lt;artifactId&gt;asm&lt;/artifactId&gt;
        &lt;version&gt;5.0.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javassist&lt;/groupId&gt;
        &lt;artifactId&gt;javassist&lt;/artifactId&gt;
        &lt;version&gt;3.12.1.GA&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&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;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>So what am I missing?</p>