Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao tentar gerar projeto

Olá pessoal, se alguém puder ajudar-me serei grato. Estou tentando gerar o projeto mas apresenta o seguinte erro:

D:\Isaias\Projetos>mvn archetype:generate DartifactId=produtos -DgroupId=br.com.
alura.maven -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quicks
tart
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.317 s
[INFO] Finished at: 2020-06-15T13:07:16-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
 in this directory (D:\Isaias\Projetos). Please verify you invoked Maven from th
e correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception
1 resposta
solução!

Olá pessoal. Já consegui encontrar o problema. Estou utilizando windows, e nesse caso eu deveria ter usado aspas duplas para nomear as coisas exemplo:

-DartifactId="produtos"

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