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-681dc7724102a498456492/]
[crayon-681dc7724103a527731071/]
# If you are not using git,    To define the app name you should use this configuration
[crayon-681dc7724103e538346430/]
* This is enought for WAR package.

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

Deploy the WAR
[crayon-681dc7724104a521780547/]
Check it is deployed and running
[crayon-681dc7724104d589488534/]
Extra Configuration
[crayon-681dc77241051053939234/]
 

 

– ffa ds

 

 

 

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