How to Deploy to Heroku from Eclipse

This short video (less than a minute and a half) demonstrates how to create, deploy and configure a Heroku application from Eclipse.

You may have noticed the pom.xml file in this example contains some configuration for the heroku-maven-plugin. That code is shown below:

<plugin>
<groupId>com.heroku.sdk</groupId>
<artifactId>heroku-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<appName>${heroku.appName}</appName>
</configuration>
</plugin>

Then you can run the following command to generate launch configurations (or right-click your pom.xml and select “Run as… -> Maven Build…”):

$ mvn heroku:eclipse-launch-config

For a more detailed description of how to configure the plugin, see the Heroku DevCenter article Deploying Java Applications with the Heroku Maven Plugin.

The DevCenter also has a textual walk through of the steps required to Deploy Java Applications to Heroku from Eclipse