Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Java EE New Maven Project: Could not resolve archetype

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!

like image 241
Man Friday Avatar asked Aug 28 '13 23:08

Man Friday


2 Answers

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.

like image 81
user3012109 Avatar answered Sep 29 '22 09:09

user3012109


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.

like image 40
Shubham Verma Avatar answered Sep 29 '22 08:09

Shubham Verma