0

When I am trying to create maven project it is showing below error

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

Please help me with the solution.

Hrishikesh
  • 2,033
  • 1
  • 16
  • 26
Sandeep
  • 173
  • 2
  • 3
  • 13
  • can u provide your pom file – Raj Jan 08 '14 at 05:00
  • @ Kamlesh Arya Failed to create the project. – Sandeep Jan 08 '14 at 05:02
  • Try answers in this http://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype – gowtham Jan 08 '14 at 05:08
  • Possible duplicate of [Create Maven project, could not resolve archetype, connection refused](http://stackoverflow.com/questions/30297947/create-maven-project-could-not-resolve-archetype-connection-refused) – Bharat Mane Mar 03 '17 at 09:27

5 Answers5

1

Please check if you configured your maven in eclipse properly
1. Go to preference-->Maven-->Installation
In this add the path of working maven directory
2. Go to preference-->Maven-->User Setting
In this add the path of your maven_directory/conf/setting.xml
Try with these setting let us know if it works...cheers

gowtham
  • 977
  • 7
  • 15
  • @ Gaurav Katkamwar My working maven directory is External C:\ProgramFiles\Maven(3.1.1) User settings is C:\Program Files\maven\conf\settings.xml – Sandeep Jan 08 '14 at 05:07
  • try updating user settings as C:\ProgramFiles\Maven(3.1.1)\conf\settings.xml – Gaurav Katkamwar Jan 08 '14 at 05:09
  • Please verify if you are using any proxy settings, these setting should be properly configured in settings.xml – Gaurav Katkamwar Jan 08 '14 at 05:27
  • @ Gaurav Katkamwar Yes i am using the proxy settings. how to configure in settings.xml? – Sandeep Jan 08 '14 at 05:30
  • add following under of settings.xml your_id true http your_username your_password your_host port local.net|192.168.* – Gaurav Katkamwar Jan 08 '14 at 05:34
  • @ Gaurav Katkamwar what to write in ur id? and in your host? – Sandeep Jan 08 '14 at 05:46
  • id could be anything and host is your proxy ipaddress it can be host name also – Gaurav Katkamwar Jan 08 '14 at 05:50
  • @ Gaurav katkamwar I edited the settings.xml like this but still getting the error - - Shanx true http 20063521 ****** 10.9.100.73 3128 local.net|192.168.* – Sandeep Jan 08 '14 at 06:57
  • @ Gaurav katkamwar Getting this while setting the user settings in Window->preferences->maven->user settings Unable to parse user settings file; Non-parseable settings C:\Program Files\maven\conf\sett...G seen ...on in this list marked as active will be used.\n |-->\n ... @104:12 – Sandeep Jan 08 '14 at 07:01
  • check out this link http://www.mkyong.com/maven/how-to-enable-proxy-setting-in-maven/ – Gaurav Katkamwar Jan 08 '14 at 08:25
1

If you are using eclipse luna EE version, GO TO Windows -> Preferences -> Maven and uncheck the following option

Do not automatically update dependencies from remote repositories.

This option is checked by default.

Naresh Vavilala
  • 598
  • 4
  • 14
0

You need to add maven archetype catalog to eclipse

  1. Window>Preferences
  2. Maven>Archetypes
  3. Add Remote Catalog and add the following:

    Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml

    Description : maven catalog

After adding archetype,restart eclipse.

Kamlesh Arya
  • 4,864
  • 3
  • 21
  • 28
0

If you are using Eclipse over Windows 7, then make sure you are running eclipse with enough privileges (Run as administrator). Furthermore, configure the Proxy settings for MAVEN as folks stated in the previous answers, and make sure that Eclipse Proxy settings are set too.

Moustafa Essa
  • 111
  • 1
  • 7
0

Just check the checkbox coming on first popup while creating Maven module. Checkbox name - "Create a sample project(skip archetype selection)" and go ahead with rest of the procedure, you will not get any errors.

shubham
  • 1
  • 2