title: How should I install missing artifacts in a maven project
body: <p>I am getting the following error, upon running mvn clean install </p>
  
  <pre>
  Missing:
  ----------
  1) org.apache.maven.shared:maven-invoker:jar:2.0.6
  
    Try downloading the file manually from the project website.
  
    Then, install it using the command: 
        mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=maven-invoker -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file
  
    Alternatively, if you host your own repository you can deploy the file there: 
        mvn deploy:deploy-file -DgroupId=org.apache.maven.shared -DartifactId=maven-invoker -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  
    Path to dependency: 
      1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-4
      2) org.apache.maven.shared:maven-invoker:jar:2.0.6
  
  2) org.apache.maven.archetype:archetype-common:jar:2.0-alpha-4
  
    Try downloading the file manually from the project website.
  
    Then, install it using the command: 
        mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId=archetype-common -Dversion=2.0-alpha-4 -Dpackaging=jar -Dfile=/path/to/file
  
    Alternatively, if you host your own repository you can deploy the file there: 
        mvn deploy:deploy-file -DgroupId=org.apache.maven.archetype -DartifactId=archetype-common -Dversion=2.0-alpha-4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  
    Path to dependency: 
      1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-4
      2) org.apache.maven.archetype:archetype-common:jar:2.0-alpha-4
  
  ----------
  2 required artifacts are missing.
  
  for artifact: 
    org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-4
  
  from the specified remote repositories:
    nexus (http://nexus.browsermob.com/content/groups/public/)
  
  
  
  [INFO] ------------------------------------------------------------------------
  [INFO] For more information, run Maven with the -e switch
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2 seconds
  [INFO] Finished at: Wed Mar 23 14:16:32 EDT 2011
  [INFO] Final Memory: 11M/81M
  [INFO] ------------------------------------------------------------------------
  
  </pre>