Eclipse Java EE New Maven project: failed to resolve archetype

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

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

All I did in terms of โ€œconfigurationโ€ was to install Eclipse Java EE (previously I also set the basic eclipse standard 4.3 earlier). I am also on a working computer, and the proxy test that I ran returned the result: This request appeared through a proxy .

It made me crazy, so any help would be great! Thanks!

+4
source share
8 answers

Make sure that in Eclipse, Windows> Preferences> Maven> User Settings, check the user settings file (settings.xml), and the proxy server parameter inside this file is correctly specified on your proxy server.

+6
source

Delete the folder C: \ Users \ {your username} \ .m2 \ repository \ org \ apache \ maven and try creating the maven project again.

+4
source

You can also add

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

Adding the next mirror section to the user.xml file of the user.

 <!-- 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 located at http://repo.maven.apache.org/maven2 , located in the United States, or http://uk.maven.org/maven2 , located in the United Kingdom.

+2
source

Best solution as below:

  • Close eclipse
  • Delete the repository folder (you can find it in C: \ Users {your user} .m2)
  • Launch Eclipse again. It will automatically install the maven repository.
+1
source
+1
source

In addition to those mentioned, I needed to change the proxy protocol from https to http .

0
source

I had the same problem and tried my best to fix it. I have tried many things, including all of the answers above.

I worked for me, I created the first Hello World project via the command line (when I created the first time I loaded a lot of things), and then I tried in eclipse. It worked for me !!!.

To create from the command line, please follow the video from the link below.

https://javabrains.io/courses/buildsys_mavenintro/lessons/Introduction-and-Setting-up-Part-1

0
source

Source: https://habr.com/ru/post/1499507/


All Articles