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

mvn compile

Olá,

Seguindo essa aula, quando tentei executar o mvn compile tive o seguinte erro:

root@tiago-System-Product-Name:/var/www/html/java/maven/exemplo1/lojaweb# mvn compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building lojaweb Maven Webapp [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).

Project ID: org.eclipse.jetty:jetty-maven-plugin

Reason: POM 'org.eclipse.jetty:jetty-maven-plugin' not found in repository: Unable to download the artifact from any repository

org.eclipse.jetty:jetty-maven-plugin:pom:9.4.0-SNAPSHOT

from the specified remote repositories: central (http://repo1.maven.org/maven2)

for project org.eclipse.jetty:jetty-maven-plugin

[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Sun Aug 28 16:42:30 BRT 2016 [INFO] Final Memory: 4M/153M [INFO] ------------------------------------------------------------------------

Grato pela atenção.

2 respostas
solução!

Oi Tiago,

Olhando aqui => http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-maven-plugin/ , parece que não existe mesmo a versão 9.4.0-SNAPSHOT, a mais recente publicada é a 9.4.0.M1

Você troca e testa?

Olá Alberto,

Funcionou, obrigado :)

Mas eu segui a vídeo aula e coloquei o código abaixo de configuração do plugin que peguei do link: https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html#jetty-run-goal

Nesse link está 9.4.0-SNAPSHOT.

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