2
respostas

Erro ao criar o projeto

Olá, alguém pode me ajudar? Tentei criar projeto e está aparecendo o seguinte erro:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.527s
[INFO] Finished at: Mon Oct 05 23:15:38 BRT 2020
[INFO] Final Memory: 8M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Carlos Alexandre\.m2\repository), central (http://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException
2 respostas

Oi CARLOS

Qual comando mvn você rodou? Pode estar dando errado porque sua máquina está atrás de um firewall ou proxy, então sua máquina não consegue acessar http://repo1.maven.org/maven2. Tente acessar este URL diretamente em um navegador ou algo parecido para testar se você pode fazer a solicitação.

Usei este comando: mvn archetype:generate -DartifactId="produtos" -DgroupId="br.com.alura.maven" -DinteractiveMode="false" -DarchetypeArtifactId="maven-archetype-quickstart"

Tentei acessar a URL e apareceu:

501 HTTPS Required. Use https://repo1.maven.org/maven2/ More information at https://links.sonatype.com/central/501-https-required

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