Eclipse Java EE New Maven Project: Could not resolve archetype

45,237

Solution 1

Please verify, in Eclipse, Windows > Preferences > Maven > User Settings, please check the User settings file (settings.xml) exists and the proxy setting inside that file is correctly pointed to your proxy server.

Solution 2

Adding the following inside "mirrors" section in the user setting.xml file.

<!-- mirrors so we can control the access of artifacts and avoid going to 
    the internet for artifact metadata -->
<mirrors>
    <mirror>
        <id>maven repo</id>
        <url>http://repo.maven.apache.org/maven2</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
</mirrors>

The official Maven 2 repository is at http://repo.maven.apache.org/maven2 hosted in the US, or http://uk.maven.org/maven2 hosted in the UK.

Solution 3

Remove C:\Users\ {your username}\ .m2\repository\org\apache\maven folder and try to create your maven project again.

Solution 4

You can also add

<mirror>
  <id>ibiblio.org</id>
  <url>http://mirrors.ibiblio.org/maven2</url>
  <mirrorOf>central</mirrorOf>
</mirror>

Solution 5

Best solution as below:

  1. Close Eclipse
  2. Delete repository folder (you can find it in C:\Users{your user}.m2)
  3. Open Eclipse again. It will install maven repository automatically
Share:
45,237
Man Friday
Author by

Man Friday

Updated on July 09, 2022

Comments

  • Man Friday
    Man Friday almost 2 years

    I am using the latest Eclipse Java EE (Kepler) and trying to create a Maven project. When I attempt to do this, and finally click the Finish button, I get this error:

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

    All I have done in terms of "set-up" is install Eclipse Java EE (I also installed the main eclipse standard 4.3 earlier). I am also on a work computer, and a proxy test I ran returned the result: This request appears to have come via a proxy.

    This has driven me nearly insane, so any help would be great! Thanks!