title: Error "copy-dependencies" in maven
body: <p>I want copy lib dependencies in maven into lib directory when install project.
  I used that in my pom file.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
      &lt;dependencies&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;2.4&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;copy-dependencies&lt;/id&gt;
                          &lt;phase&gt;package&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>
  
  <p>But it's error following:</p>
  
  <pre><code>Description Resource    Path    Location    Type
  maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e. pom.xml  /jasperreports-test line 60 Maven Project Build Lifecycle Mapping Problem
  </code></pre>
  
  <p>I tried fix it.
  This is pom file in my project.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
  
      &lt;groupId&gt;com.vccorp.adtech&lt;/groupId&gt;
      &lt;artifactId&gt;UserAgentService&lt;/artifactId&gt;
      &lt;version&gt;14.06.201&lt;/version&gt;
  
      &lt;name&gt;UserAgentService&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&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;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.eclipse.m2e&lt;/groupId&gt;
                      &lt;artifactId&gt;lifecycle-mapping&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;lifecycleMappingMetadata&gt;
                              &lt;pluginExecutions&gt;
                                  &lt;pluginExecution&gt;
                                      &lt;pluginExecutionFilter&gt;
                                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                          &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
                                          &lt;versionRange&gt;[1.0.0,)&lt;/versionRange&gt;
                                          &lt;goals&gt;
                                              &lt;goal&gt;copy-dependencies&lt;/goal&gt;
                                          &lt;/goals&gt;
                                      &lt;/pluginExecutionFilter&gt;
                                      &lt;action&gt;
                                          &lt;ignore /&gt;
                                      &lt;/action&gt;
                                  &lt;/pluginExecution&gt;
                              &lt;/pluginExecutions&gt;
                          &lt;/lifecycleMappingMetadata&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&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;1.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;copy&lt;/id&gt;
                          &lt;phase&gt;install&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}/lib
                              &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>
  
  <p>But when install It errors following:</p>
  
  <pre><code>&gt; [INFO] Building UserAgentService 14.06.201 [INFO]
  &gt; ------------------------------------------------------------------------ SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  &gt; SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
  &gt; See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
  &gt; details. Downloading:
  &gt; http://222.255.27.149:8081/nexus-maven/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/1.0/maven-dependency-plugin-1.0.pom
  &gt; [INFO]
  &gt; ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
  &gt; ------------------------------------------------------------------------ [INFO] Total time: 4.716s [INFO] Finished at: Tue Jun 26 11:55:06 ICT
  &gt; 2012 [INFO] Final Memory: 5M/15M [INFO]
  &gt; ------------------------------------------------------------------------ [ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:1.0 or
  &gt; one of its dependencies could not be resolved: Failed to read artifact
  &gt; descriptor for
  &gt; org.apache.maven.plugins:maven-dependency-plugin:jar:1.0: Could not
  &gt; transfer artifact
  &gt; org.apache.maven.plugins:maven-dependency-plugin:pom:1.0 from/to nexus
  &gt; (http://222.255.27.149:8081/nexus-maven/content/groups/public/):
  &gt; Connection refused: no further information to
  &gt; http://222.255.27.149:8081/nexus-maven/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/1.0/maven-dependency-plugin-1.0.pom
  &gt; -&gt; [Help 1] [ERROR]  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using
  &gt; the -X switch to enable full debug logging. [ERROR]  [ERROR] For more
  &gt; information about the errors and possible solutions, please read the
  &gt; following articles: [ERROR] [Help 1]
  &gt; http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
  </code></pre>
  
  <p>This is my setting.xml file.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;settings&gt;
      &lt;servers&gt;
          &lt;server&gt;
              &lt;id&gt;mjx-snapshot&lt;/id&gt;
              &lt;username&gt;deployment&lt;/username&gt;
              &lt;password&gt;deployment123&lt;/password&gt;
          &lt;/server&gt;
          &lt;server&gt;
              &lt;id&gt;vccorp-repository&lt;/id&gt;
              &lt;username&gt;editor&lt;/username&gt;
              &lt;password&gt;edxmaven&lt;/password&gt;
          &lt;/server&gt;
      &lt;/servers&gt;
      &lt;mirrors&gt;
          &lt;mirror&gt;
              &lt;id&gt;nexus&lt;/id&gt;
              &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
              &lt;url&gt;http://192.168.5.149:8081/nexus-maven/content/groups/public/&lt;/url&gt;
          &lt;/mirror&gt;       
          &lt;mirror&gt;
              &lt;id&gt;public_nuxus&lt;/id&gt;
              &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
              &lt;url&gt;http://repository.jboss.org/nexus/content/groups/public-jboss/&lt;/url&gt;
          &lt;/mirror&gt;
      &lt;/mirrors&gt;
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;development&lt;/id&gt;
              &lt;repositories&gt;
                  &lt;repository&gt;
                      &lt;id&gt;central&lt;/id&gt;
                      &lt;url&gt;http://central&lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/releases&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                  &lt;/repository&gt;
              &lt;/repositories&gt;
              &lt;pluginRepositories&gt;
                  &lt;pluginRepository&gt;
                      &lt;id&gt;central&lt;/id&gt;
                      &lt;url&gt;http://central&lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/releases&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                  &lt;/pluginRepository&gt;
              &lt;/pluginRepositories&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;!--this profile will allow snapshots to be searched when activated --&gt;
              &lt;id&gt;public-snapshots&lt;/id&gt;
              &lt;repositories&gt;
                  &lt;repository&gt;
                      &lt;id&gt;public-snapshots&lt;/id&gt;
                      &lt;url&gt;http://public-snapshots&lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/releases&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                  &lt;/repository&gt;
              &lt;/repositories&gt;
              &lt;pluginRepositories&gt;
                  &lt;pluginRepository&gt;
                      &lt;id&gt;public-snapshots&lt;/id&gt;
                      &lt;url&gt;http://public-snapshots&lt;/url&gt;
                      &lt;releases&gt;
                          &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;/releases&gt;
                      &lt;snapshots&gt;
                          &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;/snapshots&gt;
                  &lt;/pluginRepository&gt;
              &lt;/pluginRepositories&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
      &lt;!-- &lt;activeProfiles&gt; &lt;activeProfile&gt;central&lt;/activeProfile&gt; &lt;/activeProfiles&gt; --&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>Please help me!</p>