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

Erro ao criar o pacote

O projeto iniciar normal mas da erro ao criar o package

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building listavip 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ listavip ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 19 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ listavip ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 5 source files to C:\Users\Rafinhaa\workspace\springboot\ListaVIP\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/Rafinhaa/workspace/springboot/ListaVIP/src/main/java/br/com/alura/listavip/ConvidadoController.java:[10,34] package br.com.alura.enviadorEmail does not exist
[ERROR] /C:/Users/Rafinhaa/workspace/springboot/ListaVIP/src/main/java/br/com/alura/listavip/ConvidadoController.java:[43,21] cannot find symbol
  symbol:   class EmailService
  location: class br.com.alura.listavip.ConvidadoController
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.300 s
[INFO] Finished at: 2017-01-18T22:01:02-02:00
[INFO] Final Memory: 26M/265M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project listavip: Compilation failure: Compilation failure:
[ERROR] /C:/Users/Rafinhaa/workspace/springboot/ListaVIP/src/main/java/br/com/alura/listavip/ConvidadoController.java:[10,34] package br.com.alura.enviadorEmail does not exist
[ERROR] /C:/Users/Rafinhaa/workspace/springboot/ListaVIP/src/main/java/br/com/alura/listavip/ConvidadoController.java:[43,21] cannot find symbol
[ERROR] symbol:   class EmailService
[ERROR] location: class br.com.alura.listavip.ConvidadoController
[ERROR] -> [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/MojoFailureException

Estou no windows, e usando o gerenciador do maven: http://prntscr.com/dxflrf

Notei isso que estranho no .jar de enviar email: http://prntscr.com/dxflzj

Já baixei o projeto completo e o erro continua.

2 respostas

Boa noite Rafinha, pode verificar em qual pacote a classe ConvidadoController está por favor?

solução!

Boa noite,

Está em br.com.alura.listavip

Segue um print: http://prntscr.com/dxft3t