Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i am using eclipse 4.4.1. and i installed m2e version 1.5.0.. Using macOS 10.9, java 7

i downloaded some maven sample and its running fine. But whenever i am trying to create any maven project its giving me following error.

first i am getting following warning as warning box "Failed to create project"

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

once i click OK. i am getting another error box "Problem Occurred "

Unable to create project from archetype [co.ntier:spring-mvc-archetype:1.0.2 -> http://maven-repository.com/artifact/co.ntier/spring-mvc-archetype/1.0.2]
The defined artifact is not an archetype


i tried creating other archetype too.. almost similar type of error.

I google about this error and found the result to put. setting.xml in .m2/. First i copied the content of xml from https://maven.apache.org/settings.html[^]

then put proxy part as
XML
<proxies>
  <proxy>
     <active>true</active>
     <protocol>http</protocol>
     <host>proxy.example.com</host>
     <port>8083</port>
   </proxy>
 </proxies>


then also it didnot work.
then i gave only setting with proxy. did not work

i also included setting.xml file in Prefrence->maven->User settings.

I also try to set "Add Remote Catalog" http://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype[^]


But nothing seems working
Plz help...
Posted
Comments
Richard MacCutchan 16-Sep-15 15:34pm    
You probably need to find a forum devoted to maven, which is somewhat specialised.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900