How to use Heroku over Maven for Deployment your Application

What you need ?

  • You need API KEY : from HEROKU
  • You need to Download  https://github.com/heroku/heroku-maven-plugin
  • You need HEROKU  CLI : “The Heroku CLI”

 

 

Add heroku to your maven file :
[crayon-66052964c72bb029987352/]
[crayon-66052964c72c3902990475/]
# If you are not using git,    To define the app name you should use this configuration
[crayon-66052964c72c5811072335/]
* This is enought for WAR package.

# BUT ->  If the Application is stand alone, you should set how the application should be run:
[crayon-66052964c72c7808874377/]
 

Deploy the WAR
[crayon-66052964c72c9460509152/]
Check it is deployed and running
[crayon-66052964c72cc841601787/]
Extra Configuration
[crayon-66052964c72cd993446676/]
 

 

– ffa ds

 

 

 

ref: https://github.com/heroku/heroku-maven-plugin