title: Maven install error: Dependency could not be resolved
body: <p>I am using Maven 3.1.1. When I run <code>mvn install</code> I get the following error:</p>
  
  <pre><code>D:\spring source&gt;mvn install
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building SpringDependencies 1.0
  [INFO] ------------------------------------------------------------------------
  Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
  dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.648s
  [INFO] Finished at: Mon Dec 16 15:01:47 IST 2013
  [INFO] Final Memory: 4M/15M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of it
  s dependencies could not be resolved: Failed to read artifact descriptor for org
  .apache.maven.plugins:maven-dependency-plugin:jar:2.8: Could not transfer artifa
  ct org.apache.maven.plugins:maven-dependency-plugin:pom:2.8 from/to central (htt
  p://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.mave
  n.apache.org -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
  onException
  </code></pre>
  
  <p>My <code>pom.xml</code> is:</p>
  
  <pre class="lang-xml prettyprint-override"><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;spring-source-download&lt;/groupId&gt;
    &lt;artifactId&gt;SpringDependencies&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;4.0.0.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1.1&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;id&gt;download-dependencies&lt;/id&gt;
                    &lt;phase&gt;generate-resources&lt;/phase&gt;
                      &lt;goals&gt;
                        &lt;goal&gt;copy-dependencies&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                        &lt;outputDirectory&gt; ${project.build.directory}/dependencies &lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>