score:150

Accepted answer

i fixed this problem by following the solution to this other stackoverflow question

i had the same problem. i fixed it by adding the maven archetype catalog to eclipse. steps are provided below: (please note the https protocol)

  1. open window > preferences
  2. open maven > archetypes
  3. click 'add remote catalog' and add the following:

score:-3

you will need to install the m2eclipse or any other maven plugin in your eclipse. some eclipse come with maven and its plugins installed. otherwise go to help->software install, select all sites, filter list with maven, and then install the plugin. then look at this link. hope it helps.

score:0

first things first, you have to install maven on your workstation. you need also to install m2e, what you obviously did. not all distributions of juno have it pre-installed.

then configure your eclipse so it can find your maven install. in the menu window -> preferences, then open the maven section. in your right panel, you have a list of the maven installations eclipse knows. add your installation and select it instead of the embedded maven provided with m2e. don't forget to set the "global settings from installation directory" field with the path to the settings.xml of your maven installation.

which leads us to the settings.xml. if the above doesn't solve your problem, you will have to configure your maven. more infos here.

score:0

i was getting similar error while creating web-app in eclipse and resolved the problem just by cleaning (deleting all files from) and rebuilding the maven repository

score:1

it is also possible that your settings.xml file defined in maven/conf folder defines a location that it cannot access

score:1

this might sound silly, but make sure the "offline" checkbox in maven settings is unchecked. i was trying to create a project and got this error until i noticed the checkbox.

score:2

goto preferences: -> maven click 'add remote catalog' file: http://repo1.maven.org/maven2/archetype-catalog.xml desc: catalog

score:2

click windows-> preferences->maven. uncheck "offline" check box. this was not able to download archetype which i was using. when i uncheck it, everything worked smooth.

score:3

i find it solution http://www.scriptscoop.net/t/7c42f9d698a4/java-create-maven-project-could-not-resolve-archetype-connection-refused.html

we can see the origin of the problem : connection refused: connect

i have already do this :

1) window -> preferences -> general -> network connections. i put in manual with the url and port of my proxy for http protocol. it works because before this, spring tool suite did not want to update. after, it's okay.

2) window -> preferences -> maven -> user settings. in global settings, is empty. in user settings, i put the path to settings.xml. in this file, i have :

enter image description here

score:4

you can resolve it by configuring settings.xml in eclipse.

go to window --> preferences --> maven --> user settings --> select the actual path of settings.xml

score:6

add your maven_home environment variable, edit your path to include %maven_home%/bin then try creating the project manually with maven:

mvn archetype:generate -dgroupid=com.program -dartifactid=program -darchetypeartifactid=maven-archetype-webapp -dinteractivemode=false

then import the existing maven project to eclipse.

score:7

i found the easiest way was to just remove/delete the .m2 folder and recreate it, putting back your settings.xml configuration details(if applicable).

score:10

adding the following inside "mirrors" section in the user setting.xml file worked for me.

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

score:12

assuming that you have your proxy settings correct, you may have missed out pointing eclipse to the intended settings.xml file. this happens often when you have both maven installed as a snap in, and an external installation outside eclipse. you need to tell eclipse which maven installation it should use, and which settings.xml file it should be looking for.

first check that the settings.xml file contains your proxy settings.

enter image description here

next, check that the user settings.xml file here contains your proxy settings.

enter image description here

if you have made any changes, restart eclipse.


Related Query

More Query from same tag