Documente Academic
Documente Profesional
Documente Cultură
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
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 ![](
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.
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?
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.
27.3k2398161
marcos82
4431510
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:
Community♦
11
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
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.
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
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.
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).
9815
worked for me. Just needed to clean the .m2 folder. – userab Jun 14 '17 at 12:21
add a comment
3
Go to Window --> Preferences --> Maven --> User Settings --> select the actual path of settings.xml
ROMANIA_engineer
35.6k20161148
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
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 :
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
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
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.
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
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.
JstnPwll
8,06512452
add a comment
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
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
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.
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
2,85241741
kiristof
3628
añade un comentario
1 respuesta
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
Comunidad♦
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-
62
añade un comentario
1 respuesta
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
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
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.
support-swapna
Moderator
Smith,
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.
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.
–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:
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.
–Swapna
MyEclipse Support
November 20, 2017 at 12:11 am#543181REPLY
harithareddy
Participant
support-swapna
Moderator
Haritha,
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.
–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
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”
Brian Fernandes
Moderator
ayaaj,
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
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