Fala ai galera, beleza ?
Estou tentando fazer o deploy de uma aplicação web para o heroku porém esta dando erro, segue os passos:
- Logo no heroku: heroku login
- Acesso a pasta do projeto, o mesmo é um projeto web maven.
- Crio a aplicação: heroku create mhcws
- Faço o deploy: git push heroku master, nesse momento ele gera o seguinte erro:
remote: [ERROR] COMPILATION ERROR :
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] /tmp/build_40107e424a3d6836f9ecb069dbad1b70/src/main/java/br/com/mhc/mhcws/models/CPF.java:[13,34] package br.com.mhc.cpf does not exist
remote: [ERROR] /tmp/build_40107e424a3d6836f9ecb069dbad1b70/src/main/java/br/com/mhc/mhcws/resource/CPFResource.java:[22,93] package br.com.mhc.cpf does not exist
remote: [INFO] 2 errors
remote: [INFO] -------------------------------------------------------------
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD FAILURE
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 10.004 s
remote: [INFO] Finished at: 2016-12-29T22:52:57+00:00
remote: [INFO] Final Memory: 25M/154M
remote: [INFO] ------------------------------------------------------------------------
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mhcws: Compilation failure: Compilation failure:
remote: [ERROR] /tmp/build_40107e424a3d6836f9ecb069dbad1b70/src/main/java/br/com/mhc/mhcws/models/CPF.java:[13,34] package br.com.mhc.cpf does not exist
remote: [ERROR] /tmp/build_40107e424a3d6836f9ecb069dbad1b70/src/main/java/br/com/mhc/mhcws/resource/CPFResource.java:[22,93] package br.com.mhc.cpf does not exist
remote: [ERROR] -> [Help 1]
remote: [ERROR]
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR]
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote:
remote: ! ERROR: Failed to build app with Maven
remote: We're sorry this build is failing! If you can't find the issue in application code,
remote: please submit a ticket so we can help: https://help.heroku.com/
remote:
remote: ! Push rejected, failed to compile Java app.
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to mhcws.
remote:
To https://git.heroku.com/mhcws.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mhcws.git'
Ja entendi porque esta dando esse erro, porque possuo uma dependência de outro projeto(java maven) dentro desse, portanto o pacote br.com.mhc.cpf que ele não esta achando é referente a esse outro projeto mas não consigo resolver o problema.
Obs: Na minha máquina o projeto funciona normalmente, tanto no tomcat quanto para compilar usando o maven.
Se alguém puder me ajudar ficaria grato.