Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Could not resolve archetype

Ao tentar criar pelo eclipse usando o webapp... ele retorna o erro de que não conseguiu encontrar esse archetype no repositório maven.

Quando eu mando criar pelo eclipse outros archetypes ele cria sem problemas (ex: o quickstart ou o j2ee)...

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): connect timed out Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): connect timed out

4 respostas
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
solução!

não funcionou. Ao criar um novo projeto Maven, quando eu seleciono o novo calalogo, ele não aparece nenhum Archetype e a parece a mensagem. "No Archretype availabe for this catalog".

Quando eu coloco o catálogo "All Catalogs", ele aparece todos os archetypes, mas só não consegue criar o webapp com a descrição acima.

Vou tentar o por linha de comando e acredito que funcione. Não estou entendendo o pq não funciona pelo eclipse.

Pela linha de comando ele criou sem problemas.

Perfeito João, qualquer coisa só abrir outro tópico

Abraço!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software