Boa noite,
Eu consigo compilar e executar o projeto listavip normalmente pelo eclipse enviando email e tudo mais, porém quando vou fazer o fatjar ele dá o seguinte erro. Vocês podem me ajudar?
Um detalhe importante é que o projeto listavip foi gerado dentro do workspace do eclipse e o projeto gerador de email foi gerado pelo starter do spring que configura o projeto inicial, conforme feito pelo instrutor do curso. Outro fato relevante é que, os dois projetos se encontram em diretórios diferentes.
O lista vip está em: /Users/Rhelcris/Documents/Desenvolvimento/workspace/listavip
e o email está em: /Users/Rhelcris/Documents/Desenvolvimento/cursos_alura/SpringBoot/sigopEmail
O erro segue a seguir.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/Rhelcris/Documents/Desenvolvimento/workspace/listavip/src/main/java/br/com/alura/listavip/ConvidadoController.java:[12,26] package br.com.sigop.email does not exist
[ERROR] /Users/Rhelcris/Documents/Desenvolvimento/workspace/listavip/src/main/java/br/com/alura/listavip/ConvidadoController.java:[37,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: 2.564 s
[INFO] Finished at: 2017-03-06T16:38:49-03:00
[INFO] Final Memory: 28M/289M
[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] /Users/Rhelcris/Documents/Desenvolvimento/workspace/listavip/src/main/java/br/com/alura/listavip/ConvidadoController.java:[12,26] package br.com.sigop.email does not exist
[ERROR] /Users/Rhelcris/Documents/Desenvolvimento/workspace/listavip/src/main/java/br/com/alura/listavip/ConvidadoController.java:[37,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