Sunteți pe pagina 1din 45

como resuelvo este problema?

no puedo crear proyectos en


maven, dice eso cuando le das maven proyect,next,group
id,artifact id,next sale eso
adonisperez23
4314
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured
repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1
3
hace 2 años
Java

Escribe tu comentario
+2
Ordenar por:
Top
2

osmandi

27172 Puntos

2 años
¿Qué IDE estás usando? También su versión, tu SO y unas capturas para ver cómo puedo ayudarte.
0

adonisperez23
2 años
estoy usando sts version 3.8.3, uso windows 10 64 bits y el problema es este ![](

adonisperez23
2 años
![](
1

osmandi
2 años
Entra en start.spring.io coloca las dependencias que vas a usar, descomprime el archivo descargado y luego en Spring Tool Suite lo
mandas abrir.

En la parte de tutoriales de Java Profesional hay uno de Spring CLI para que tengas una referencia.
0

cesardramirez_

18448 Puntos

2 años
Cómo que es un problema directo de Eclipse. Revisa este artículo. https://es.stackoverflow.com/questions/21749/problemas-con-maven-
en-eclipse
0

adonisperez23
2 años
estoy haciendo lo que me indica el articulo, pero no se cual es la direccion y el puerto proxy que ellos piden alli…
0

3ainformatica

6637 Puntos

2 años
Solucion 1

Controlla que el repository esten configurados correctamente en STS.

Windows -> Preferences -> Archetypes :


Deberias tener una lista de catalogos, donde internal deberia ser la que hace referencia a maven central, puedes controlar :
https://howtodoinjava.com/tools/eclipse/how-to-import-maven-remote-archetype-catalogs-in-eclipse/
Solucion 2
Controla si estas con un proxy cuando navegas con internet o tienes una configuracion particular en el StS. ( Attualemente tendo salida
directa sin proxy, estoy usando acctive provider Native, con todos los proxy entries sin seleccionar)
Windows -> Preferences -> General -> Network Connections:
Controlla que todos los parametros sean correctos
Solucion 3

Controlla que la configuracion a los repositorios sean correctos en el file setting.xml

Windows -> Preferences -> Maven -> User Settings

verifica se no hay alguna configuracion particular que no te permita que STS no pueda conectar con maven central.
puedes hasta probar quitar el path de** user setting** y dejarlo vacio para dejar a STS que haga la coneccion a los repositorios.
Solucion 4
Si tienes urgencia, de iniciar, crea un proyecto maven y selecciona el check create a simple project y al interno del pom.xml agrega la
dependecia :
<dependency>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.1</version>
</dependency>
https://mvnrepository.com/artifact/org.apache.maven.archetypes/maven-archetype-quickstart/1.1
0

adonisperez23
2 años
hola, he hecho la primera y ahora me sale este error ![](
para la segunda no se cual es la configuracion que deberia tener, actualmente estan asi ![](

para la 3 me pasa igual,![](


y para la 4 me crea el proyecto pero con el mismo error de la primera, la verdad es que no he podido avanzar en este curso por estos
errores por que la idea es hacer lo que te expliquen en ellos e ir aprendiendo, he tratado muchas soluciones de las que aparecen en
internet y nada…
0
adonisperez23
2 años

disculpa, obvia el primer screenshot del error, es este el verdadero error

0
3ainformatica
2 años
Primero :

1. Crea un proyecto Maven de tipo simple, sin seleccionar un architype, apre il pom.xml y crea la dependencia:
<dependency>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.1</version>
</dependency>
No crear ningun architype parent, he visto uno con la llamada a un core de platzy, com.platzy.hibernate-parent, controla si existe en :
C:\Users\adonia.m2\repository\com\platzy\hibernate-parent.
Si no existe es porque no haz creado nunca el proyecto en local, creo que lo abras visto en algun tutorial.
Si el error es Could not calculate build plan : libreria
plugin 2.6… ,busca la carpeta :
C:\Users\adonia.m2\repository\org\apache\maven\plugins\maven-resources-plugin
Mueve el contenido en otra carpeta(Si no te fias) o la podrias borrar y cuando algun proyecyo necesite estas librerias las descargara en
futuro.
Anda a Eclipse y dale click derecho del mouse encima del proyecto y apre Maven -> Update Proyect, verifica que tu proyecto sea
seleccionado y la opcion :
Force Update of Snaptshots/Release
Cuando ha terminado, click derecho a tu proyecto :
1. Run as -> Maven clean
2. Run as -> Maven install.
Si el error persiste, installa maven en local https://www.mkyong.com/maven/how-to-install-maven-in-windows/ y descarga
manualmente el architypehttps://area-51.blog/2012/02/14/manually-downloading-an-artefact-in-maven/.

Si con este metodo no tienes problemas, prueba descargar otra vez STS, o si tienes experiencia, entra al Market, controla si puedes
actualizar la version de maven.
I am totally a newbie with Maven. I want to create a Maven project with Eclipse Juno EE with archetype "webapp".
I installed "Maven Integration for Eclipse WTP (incubation)" and I also have installed "Maven Integration for Eclipse"
(found it on Installed tab of Eclipse Marketplace). When I try to create new Project from File->New_>Maven Project,
I obtain error:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured
repositories.

Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata


org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Documents and
Settings\PEP35KD\.m2\repository)

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata


org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Documents and
Settings\PEP35KD\.m2\repository)

It happens for all kinds of archetype. I am using a proxy, and I create file settings.xml under C:\Documents and
Settings\PEP35KD.m2\ with this content:

<proxies>
<proxy>
<id>myId</id>
<active>true</active>
<protocol>http</protocol>
<username>rete\pep35kd</username>
<password>XXXX</password>
<host>XXXX</host>
<port>8080</port>
<nonProxyHosts>localhost</nonProxyHosts>
</proxy>
</proxies>
Please, consider that it seems that I cannot use mvn command from command line (command not found). I never
installed Maven itself, I thinked that plugin is just enough: is it a correct assumption?

UPDATE Problem is definitely related to proxy. By:


 Installing Maven on local PC;

 Installing Maven Eclipse from Eclipse Market Place;

 Setting Maven Install directory to local PC Maven dir, instead of default Embedded Maven,
everything works as expected. I cannot really understand why, but probably firewall is blocking traffic with Maven
servers.

java eclipse maven

shareimprove this question

edited Sep 25 '13 at 7:18


Raedwald

27.3k2398161

asked Mar 19 '13 at 17:09

marcos82

4431510

marked as duplicate by Tunaki java Jun 28 '16 at 13:13


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new
question.
 1
Is your proxy username really "rete\pep35kd"? – Alexis Dufrenoy Mar 20 '13 at 9:10

 Yes, it is just the username I use setting Proxy in Chrome or Firefox – marcos82 Mar 22 '13 at 8:26
 Your solution didn't work for me. Finally I solved the problem: See detailed steps at my response
at stackoverflow.com/questions/25760961/… – freesoft Sep 12 '14 at 13:24
add a comment
15 Answers

activeoldest votes

126

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:

1. Open Window > Preferences

2. Open Maven > Archetypes

3. Click 'Add Remote Catalog' and add the following:


 Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml
 Description: maven catalog
shareimprove this answer

edited May 23 '17 at 12:26

Community♦

11

answered Mar 8 '14 at 5:20


TomDestry

2,32152339

 1
This should be accepted the answer since it solved this problem (for me at least). – Игор Рајачић May 1 '14 at 7:21

 3
To me it says that doesn't exists the archetype catalog. – DarkCoffee Jun 13 '14 at 14:03

 16
I get an empty catalog file with no templates or whatsoever... – Gobliins Nov 2 '15 at 14:33

 4
there is no catalog file available anymore at this link. – Wafeeq Dec 15 '16 at 12:34

 2
It seems to be back now. – TomDestry Dec 16 '16 at 2:46

show 4 more comments

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.

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

If you have made any changes, restart Eclipse.

shareimprove this answer

answered Mar 20 '13 at 2:38

Oh Chin Boon

13.4k41123194

 1
Checked it again, and I am using correct settings.xml everywhere (the default one with proxy added). – marcos82 Mar 22 '13 at 8:30
 one more thing to go, noticed that you have put your domain\username. Could you remove the domain, and use just the username? – Oh Chin
Boon Mar 22 '13 at 8:38
 1
I tried it, but nothing changed. – marcos82 Mar 22 '13 at 9:13

 @OhChinBoon is it necessary to have an environment variable when build in eclipse?, i have not resolved problem – Omar NourdeaN May 22
'14 at 10:01
add a comment

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>
shareimprove this answer

answered Feb 2 '15 at 9:26

ChannaB

14918
 This is the solution that worked for me. There are also some others mirrors that can be used
(<id>uk.maven.org</id><url>http://uk.maven.org/maven2</url>, <id>central</id><url>http://repo1.maven.org/maven2</url>,
etc.). This URL can be useful: repo.maven.apache.org/maven2/.meta/repository-metadata.xml . – ROMANIA_engineer Nov 5 '15 at 10:41
add a comment

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.

shareimprove this answer

edited Mar 19 '13 at 17:17

answered Mar 19 '13 at 17:11

fcm

4,50051936

 I cannot use "mvn" command line. Is it necessary to install Maven before the Eclipse plugin? It can seem a obvious question, but I expected some
error from Eclipse if Maven was required and not available. – marcos82Mar 19 '13 at 17:17
 To use the mvn command, you have to add the enviroment variable. Se here for more
information: confluence.sakaiproject.org/pages/… – fcm Mar 19 '13 at 17:18
 Also, of course, if you haven't yet, you have to configure maven so it works correctly on Eclipse. Go to Window -> Preferences -> Maven, and it's
all there (Installation dir, settings, etc.) – fcm Mar 19 '13 at 17:21
 I cannot find Maven directory installation on PC. From this link stackoverflow.com/questions/289800/…, I understand that I need full Maven
installation to use it on command line, isn't it? – marcos82 Mar 19 '13 at 17:28
 Under Windows-Preferences->Maven->Installations, installation selected to launh Maven is set to Embedded (no path) – marcos82 Mar 19 '13
at 17:29
show 5 more comments

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).

shareimprove this answer

answered Jul 29 '14 at 17:31

Erasmus Mann Larbi

9815

 worked for me. Just needed to clean the .m2 folder. – userab Jun 14 '17 at 12:21
add a comment
3

You can resolve it by configuring settings.xml in Eclipse.

Go to Window --> Preferences --> Maven --> User Settings --> select the actual path of settings.xml

shareimprove this answer

edited Nov 4 '15 at 15:08

ROMANIA_engineer

35.6k20161148

answered Jan 8 '14 at 10:41

Karthik Palanisamy

714

 Thanks so much, this worked for me, none of the other answers worked! – Kidburla Apr 29 '15 at 20:50
add a comment

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 :

shareimprove this answer

answered Dec 11 '15 at 8:28

java.nazif

216415
add a comment

Goto Preferences: -> Maven Click 'Add Remote Catalog' File: http://repo1.maven.org/maven2/archetype-
catalog.xml Desc: Catalog
shareimprove this answer

answered Jun 13 '15 at 21:06

Prateek Rathore

365

add a comment

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

shareimprove this answer

answered Feb 28 '15 at 3:43


Harsh Gupta

1776

add a comment

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.

shareimprove this answer

answered Jan 26 '16 at 7:10

Mandar_P

265

 Worked for me. Had issues with this check box before. It is so annoying, – user435421 Mar 26 '18 at 13:04
add a comment

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.
shareimprove this answer

answered Mar 19 '13 at 17:30

Alexis Dufrenoy

8,246964119

 1
I installed Maven, set Maven installation to new installed software, but creating project from Eclipse still gives same error. I tried to lanunbch this
command from command line: mvn archetype:generate -DgroupId=com.program -DartifactId=Program -DarchetypeArtifactId=maven-archetype-
webapp -DinteractiveMode=false but I have a lot of errors like this: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its
dependencies could not be resolved And final build failure: No plugin found for prefix 'archetype' in the current project and in the plugin
groups – marcos82 Mar 19 '13 at 17:51
add a comment

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.

shareimprove this answer

answered Jun 12 '15 at 14:10

JstnPwll

8,06512452

add a comment

Goto Preferences: -> Maven

1. check Download Artifact Source


2. check Download Artifact JavaDoc
shareimprove this answer

answered Apr 8 '16 at 12:18


jaskirat Singh

451311

add a comment

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

shareimprove this answer

answered Jun 13 '16 at 6:11

Akshada

95211

add a comment

-2
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.
shareimprove this answer

answered Aug 15 '13 at 17:44

Rajan

99021726

 Without this plugin, OP wouldn't have been able to see the "File->New->Maven Project" in the first place – Kidburla Apr 29 '15 at 20:52
add a comment
0

Estoy teniendo problemas al trabajar con maven tanto eclipse como netbeans.

Me aparece error al generar un proyecto:

could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured


repositories
Os cuento lo que tengo por si algún paso esta mal pero estado revisando y no encuentro la manera de solucionarlo.

He descargado la carpeta en D y desde variable de entorno MAVEN_HOME llamo a la raíz D:\apache-maven-3.3.9 y en path
llamo a maven_home. En la configuración del propio eclipse windows-preferences-archetypes-remote http://
repo.maven.apache.org/maven2/archetype-catalog.xml.
La verdad que he buscado bastante por internet pero no encuentro la solución para que pueda trabajar con maven.

java maven

compartirmejorar esta pregunta

editada el 26 ago. 16 a las 10:03


Miquel Coll

2,85241741

formulada el 26 ago. 16 a las 9:10

kiristof

3628

añade un comentario

1 respuesta

activasmás antiguas votos

pregunta, ¿La red de tu conexión cuenta con alguna política restrictiva de trafico? Me suena a que probablemente
algún firewall este bloqueando el trafico de red a los repositorios Maven.

Intenta lo siguiente, desde eclipse: Open Window > Preferences Open Maven > Archetypes Click 'Add Remote Catalog'
and add the following: Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml Description: maven catalog
Revisa configuración en parametros de conexión:

1) Window -> Preferences -> General -> Network Connections. Coloca la dirección y puerto del proxy que uses.

Da una vuelta por esta pregunta: Cannot create Maven Project in eclipse
compartirmejorar esta respuesta

editada el 23 may. 17 a las 12:39

Comunidad♦

respondida el 26 ago. 16 a las 14:48

Ventur

1,454722
 Voy a revisarlo porque trabajando con la version Mars2 de Eclipse me da problemas pero al trabajar con Juno que es una version mas antigua
puedo trabajar sin problemas .Voy a revisar lo que me comentas porque puede ser problema de eso.Muchas gracias – kiristof el 29 ago. 16 a
las 10:11
 Gracias por la contestacion puedo trabar sin problema era problema de red. – kiristof el 2 sep. 16 a las 7:16
Estoy creando un proyecto maven en Eclipse Mars2, java 7 y maven 3.2.5 bajo windows10; en eclipse preferences-

>General->Network Conecctions no tengo nada configurado


Hasta el momento no he podido resolver este problema

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


repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 Could not
transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version Could not transfer artifact
org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version
La configuracion de maven corre bien como se muestra, pero una consulta si tengo windows10 porque aparece windows
8.1

El apoyo a esto llevo varias semanas y no lo puedo resolver


java eclipse maven

compartirmejorar esta pregunta

formulada el 18 ene. a las 0:50


Robert Mattos

62

añade un comentario

1 respuesta

activasmás antiguas votos

Te sugiero que mires la configuración de tu Eclipse o tu Maven instalado manualmente de igual forma el java que
tienes instalado para poder compilar correctamente porque la compilación depende de la versión del java y el maven,
por otro lado puede ser que tengas configurado un setting y por ende no tengas acceso al Maven repositorio y no

descargue la dependencia revisa en Windos>preferences y escribe Maven> User setting


Debes asegurarte de no tener el global setting configurado porque si lo tienes posiblemente no se conecte al
repositorio Maven centralizado… Por otra parte debe de mirar la configuraicon que tengas en tu lugar de trabajo
posiblemente tienen deshabilitado el acceso y debes colocar una IP que te permita tener acceso.

Otra forma de crearlo es; si no te funciona puedes crear el arquetipo por la consola Crea un directorio e ingre a la
ubicación por la cd y coloca esta líneas de comando asegúrate de colocar esto para tu proyecto
 DgroupId=paquete DartifactId=nombre proyecto mvn archetype:generate -DgroupId=com.mycompany.app -
DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -
DinteractiveMode=false
Para más información revisa este link te explican mejor la configuración por
CMDhttps://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Saludo espero te ayude
compartirmejorar esta respuesta

respondida el 18 ene. a las 15:33

Jhon Chaparro

314

 Hola Jhon, mi user setting y el Global estan por defecto no lo he configurado y como adjunte la pantalla de conexiones tampoco he
colocado ningun valor porque estoy haciendo un trabajo de forma libre....tambien he realizado crear el proyecto por consola y me
sale el mismo error....recuerdo anteriormente tenia instalado el windows10 de fabrica en mi laptop y creaba proyectos sin problemas;
pero tuve problemas con el windows10 y lo volvi a instalar y ahora que quiero hacer un proyecto con maven tengo estos problemas
tendra que ver algo lo que comento,.....gracias – Robert Mattos el 19 ene. a las 15:20
Could not resolve archetype when creating a Maven
Project
Tagged: support-swapna

This topic contains 11 replies, has 7 voices, and was last updated by Brian Fernandes 1 month, 1 week ago.
Viewing 12 posts - 1 through 12 (of 12 total)

 Author

Posts
 August 6, 2014 at 12:02 pm#350842REPLY
psmith2234

Member

When attempting to create a Maven project I’m getting a could not resolve archetype.

Here is the Detail of the error message:


Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata
org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\smpatric\.m2\repository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata
org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\smpatric\.m2\repository)

What do I have to do to get by this error?


August 7, 2014 at 1:27 am#350849REPLY

support-swapna

Moderator

Smith,

Sorry that you are seeing this issue.

Can you please answer some more questions for us ?


1. Are you behind a firewall or proxy?

If yes, then :

a) You should create a file called settings.xml in [user]/.m2 directory with the proxy information defined. Here is the reference
: http://maven.apache.org/settings.html#Proxies
b) Go to Window > Preferences > MyEclipse > Maven4MyEclipse > User Settings. Make sure the User Settings points to the correct path of
settings.xml file. Click on ‘Update Settings’ and ‘Reindex’. Apply the changes.

c) While Maven is downloading the files, it will take time to update indexes.You will see an updating indexes message at the corner of MyEclipse
IDE. Only when this process is success, try to create a maven project.

2. You could also rename / delete the .m2 folder itself and force MyEclipse to re-download all dependencies on startup. Go to Window >
Preferences > MyEclipse > Maven4MyEclipse. Make sure the ‘Download repository index updates on startup’ is checked. Close the IDE.
Rename/delete the .m2 folder and start the IDE. Wait till the Maven finishes downloading the files and then try creating a new Maven project.

3. If you are still seeing issues, please share the MyEclipse Version and Build id from Help > About.

Let us know how it works for you.


October 24, 2017 at 6:43 am#540702REPLY

sak123

Participant

Hi Swapna, i tried above solution but i am still not able create maven project. Below is the error i get “Could not resolve archetype
org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.” Kindly help
October 24, 2017 at 7:28 am#540705REPLY
support-swapna

Moderator

sak123,

Sorry that you are seeing issues with maven project creation.

Can you please clarify if you are behind a firewall or proxy and you have set up the proxy details in MyEclipse here : Window > Preferences >
General > Network Connections ?

Please let us know what exact solution did you try. Did you also try renaming/deleting the .m2 folder as suggested in the above response?

If the settings.xml is pointing to the correct proxy server and none of the suggestions in the above response worked, then please share with us the
.log file located at workspace dir/.metadata/.log along with the MyEclipse Build Id and Version details from Help > About MyEclipse section.

Apologies for inconvenience caused.

–Swapna
MyEclipse Support
October 24, 2017 at 8:35 am#540709REPLY

sak123

Participant

Hi,
I tried deleting M2 folder but could not get success in it.Please find below screenshots for log file and Network Connections.

Attachments:

You must be logged in to view attached files.


October 24, 2017 at 9:07 am#540713REPLY

support-swapna

Moderator

sak123,

Thank you for the screenshots. In addition to setting the correct proxy details in the Network Connections page, you should also define them in the
settings.xml file as suggested in my previous response.

Please refer to the links and check if the suggestions work for you :
https://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype
https://stackoverflow.com/questions/18499931/eclipse-java-ee-new-maven-project-could-not-resolve-archetype
I am afraid we cannot provide further support as you are working with Eclipse and not MyEclipse. I suggest you check with Eclipse forums or
development related forums like stackoverflow.com for better support from the developer community.

Hope this helps.

–Swapna
MyEclipse Support
November 20, 2017 at 12:11 am#543181REPLY
harithareddy

Participant

[INFO] Scanning for projects…


[INFO]
[INFO] ————————————————————————
[INFO] Building hello 0.0.1-SNAPSHOT
[INFO] ————————————————————————
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 2.187 s
[INFO] Finished at: 2017-11-20T11:28:16+05:30
[INFO] Final Memory: 11M/111M
[INFO] ————————————————————————
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-
plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Connect to 10.219.40.60:80 [/10.219.40.60] failed: Connection refused:
connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
I’m getting the above error when I try to run the maven project
I’m attaching the screen shot of my settings.xml. I’m using office proxy.Please help me out.
Attachments:

You must be logged in to view attached files.


November 20, 2017 at 11:50 am#543240REPLY

support-swapna

Moderator

Haritha,

Sorry that you are seeing this issue.

1. Can you please clarify if you have set up Network Connections (Window > Preferences > General > Network Connections) in MyEclipse IDE?

2. Can you please go to Window>Preferences>MyEclipse>Maven4MyEclipse>User Settings and check if it points to the correct settings.xml?

3. Can you please check if you can access the repo from your browser? If the proxy settings are right in the settings.xml, then please right click on
the maven project > Maven > Update Project and check the option “Force update of Snapshots/Releases”.

4. If the issue persists, then do a Maven clean and install the project and check. Also share with us the MyEclipse version details you are working
with.

Please let us know how it works for you.

–Swapna
MyEclipse Support
April 6, 2019 at 3:27 am#612170REPLY
ayyaj

Participant

Hello @support-swapna
Can you help me?
I am getting this error while plugin MVEN with Eclipse

Microsoft Windows [Version 10.0.17134.648]


(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\ajamadar>mvn -v
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T00:11:47+05:30)
Maven home: C:\work\Maven\apache-maven-3.6.0\bin\..
Java version: 10.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-10.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”

C:\Users\ajamadar>mvn archetype:generate “DgroupId=qaclickacademy” “DartifactId=Mavenjava” “DarchetypeArtifactId=maven-archetype-


quickstart” “DinteractiveMode=false”
[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 0.084 s
[INFO] Finished at: 2019-04-06T13:54:59+05:30
[INFO] ————————————————————————
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\ajamadar). Please verify you invoked
Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
April 8, 2019 at 2:03 pm#612255REPLY

Brian Fernandes

Moderator

ayaaj,

mvn archetype:generate “DgroupId=qaclickacademy” “DartifactId=Mavenjava” “DarchetypeArtifactId=maven-archetype-


quickstart” “DinteractiveMode=false”
Your command is incorrectly specified as you are placing your switches within quotes, it should be something like
mvn archetype:generate -DgroupId=qaclickacademy ..

See this link for more information. Hope this helps.


April 9, 2019 at 11:25 pm#612342REPLY

bhupesh-yedla

Participant

Hi Swapna,
I have done all the below steps as suggested but still getting the same issue regarding archetype as below:

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

1. Can you please clarify if you have set up Network Connections (Window > Preferences > General > Network Connections) in MyEclipse IDE? –
Done

2. Can you please go to Window>Preferences>MyEclipse>Maven4MyEclipse>User Settings and check if it points to the correct settings.xml? –
Done

3. Can you please check if you can access the repo from your browser? If the proxy settings are right in the settings.xml, then please right click on
the maven project > Maven > Update Project and check the option “Force update of Snapshots/Releases”.- Done

4. If the issue persists, then do a Maven clean and install the project and check. Also share with us the MyEclipse version details you are working
with.- Done

Please find the details of eclipse version and build :


Eclipse IDE for Java Developers
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200

Kindly please help me to get this resolved. I really have no idea what cuold be the potential issue here stopping me to create a maven project.

Thanks,
Bhupesh Yedla.
April 10, 2019 at 12:15 am#612346REPLY

Brian Fernandes

Moderator

Bhupesh,
1) There are several people on this thread, since you haven’t posted earlier, I’m not sure what your starting state is, and where and how you are
executing the commands. Are you using a wizard (if so, which one) or are you executing these commands on the command line?

2) It would appear that you’re using a regular Eclipse install (Eclipse IDE for Java Developers), not MyEclipse, so the interface, options and
capabilities are a bit different. If this really is the case, you might be better served by asking on stackoverflow. If you are using MyEclipse, do
provide more context, and send in your workspace error log, which y

S-ar putea să vă placă și