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 [Link]:maven-archetype-quickstart:1.1 from any of the configured
repositories.
Could not resolve artifact [Link]: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 
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 [Link]
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 [Link] agrega la
dependecia :
<dependency>
<groupId>[Link]</groupId>
<artifactId>maven-archetype-quickstart</artifactId>
<version>1.1</version>
</dependency>
[Link]
0
adonisperez23
2 años
hola, he hecho la primera y ahora me sale este error  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 [Link] y descarga
manualmente el architype[Link]
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 [Link]:maven-archetype-webapp:RELEASE from any of the configured
repositories.
Could not resolve artifact [Link]:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for [Link]:maven-archetype-webapp:pom:RELEASE: Could not find metadata
[Link]:maven-archetype-webapp/[Link] in local (C:\Documents and
Settings\PEP35KD\.m2\repository)
Failed to resolve version for [Link]:maven-archetype-webapp:pom:RELEASE: Could not find metadata
[Link]:maven-archetype-webapp/[Link] 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 [Link] 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 [Link]/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: [Link]
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 [Link] 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 [Link]
file it should be looking for.
First check that the [Link] file contains your proxy settings.
Next, check that the user [Link] 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 [Link] 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 [Link] file worked for me.
<mirror>
<id>[Link]</id>
<url>[Link]
<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>[Link]</id><url>[Link] <id>central</id><url>[Link]
etc.). This URL can be useful: [Link]/maven2/.meta/[Link] . – 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=[Link] -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: [Link]/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 [Link]/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 [Link]
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 [Link] in Eclipse.
Go to Window --> Preferences --> Maven --> User Settings --> select the actual path of [Link]
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 [Link]
[Link]
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 [Link]. In this file, i have :
shareimprove this answer
answered Dec 11 '15 at 8:28
[Link]
216415
add a comment
Goto Preferences: -> Maven Click 'Add Remote Catalog' File: [Link]
[Link] Desc: Catalog
shareimprove this answer
answered Jun 13 '15 at 21:06
Prateek Rathore
365
add a comment
It is also possible that your [Link] 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 [Link] of your Maven installation.
Which leads us to the [Link]. 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=[Link] -DartifactId=Program -DarchetypeArtifactId=maven-archetype-
webapp -DinteractiveMode=false but I have a lot of errors like this: Plugin [Link]: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 [Link]: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://
[Link]/maven2/[Link].
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: [Link] 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 [Link] 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 [Link]:maven-archetype-quickstart:1.1 from any of the configured
repositories. Could not resolve artifact [Link]:maven-archetype-quickstart:pom:1.1 Could not
transfer artifact [Link]:maven-archetype-quickstart:pom:1.1 from/to central
([Link] Received fatal alert: protocol_version Could not transfer artifact
[Link]:maven-archetype-quickstart:pom:1.1 from/to central
([Link] 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=[Link] -
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
CMD[Link] 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 [Link]:maven-archetype-webapp:RELEASE from any of the configured repositories.
Could not resolve artifact [Link]:maven-archetype-webapp:pom:RELEASE
Failed to resolve version for [Link]:maven-archetype-webapp:pom:RELEASE: Could not find metadata
[Link]:maven-archetype-webapp/[Link] in local (C:\Users\smpatric\.m2\repository)
Failed to resolve version for [Link]:maven-archetype-webapp:pom:RELEASE: Could not find metadata
[Link]:maven-archetype-webapp/[Link] 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 [Link] in [user]/.m2 directory with the proxy information defined. Here is the reference
: [Link]
b) Go to Window > Preferences > MyEclipse > Maven4MyEclipse > User Settings. Make sure the User Settings points to the correct path of
[Link] file. Click on ‘Update Settings’ and ‘Reindex’. Apply the changes.
c) While Maven is downloading the files, it will take time to update [Link] 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
[Link]: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 [Link] 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 [Link] 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
[Link] file as suggested in my previous response.
Please refer to the links and check if the suggestions work for you :
[Link]
[Link]
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 [Link] 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: [Link]
[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 [Link]:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact
descriptor for [Link]:maven-clean-plugin:jar:2.5: Could not transfer artifact [Link]:maven-clean-
plugin:pom:2.5 from/to central ([Link] Connect to [Link]:80 [/[Link]] 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] [Link]
I’m getting the above error when I try to run the maven project
I’m attaching the screen shot of my [Link]. I’m using office [Link] 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 [Link]?
3. Can you please check if you can access the repo from your browser? If the proxy settings are right in the [Link], 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] [Link]
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 [Link]: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 [Link]? –
Done
3. Can you please check if you can access the repo from your browser? If the proxy settings are right in the [Link], 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