title: Maven not installing dependency
body: <p>I have the following (short) <code>pom.xml</code> for a Maven project. I added the <code>com.google.collections</code> dependency, yet I do not see any of the classes for this dependency on in the <code>/target/classes</code> directory when I do a <code>maven clean package</code>. Furthermore, when I execute the JAR, I get an error (<code>java.lang.NoClassDefFoundError: com/google/common/collect/Iterables</code>). What am I forgetting to do?</p>
  
  <pre><code>&lt;project&gt;
    &lt;groupId&gt;edu.berkeley&lt;/groupId&gt;
    &lt;artifactId&gt;java-page-rank&lt;/artifactId&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;configuration&gt;
            &lt;source&gt;1.6&lt;/source&gt;
            &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;name&gt;PageRank&lt;/name&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt; &lt;!-- Spark dependency --&gt;
        &lt;groupId&gt;org.apache.spark&lt;/groupId&gt;
        &lt;artifactId&gt;spark-core_2.10&lt;/artifactId&gt;
        &lt;version&gt;1.6.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- http://mvnrepository.com/artifact/com.google.collections/google-collections --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.google.collections&lt;/groupId&gt;
        &lt;artifactId&gt;google-collections&lt;/artifactId&gt;
        &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>