错误:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.

Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:\Users\Administrator\.m2\repository)

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:\Users\Administrator\.m2\repository)

解决办法:

  1. 如果C:\Users\Administrator\.m2\路径下没有settings.xml则拷贝D:\apache-maven-3.2.5\conf中的settings.xml到此目录。

  2. 将settings.xml的<proxy>相应信息改为自己的代理。

  3. 重新启动eclipse

  4. 完成