• 0.9

Deploying JAR/WAR/EAR projects to Heroku

Create new application in Heroku.

Download Heroku SSH key (heroku.pem) and put it somewhere outside of project directory (in your CI server). Configure the server (and its private key) in settings.xml


Configure jcabi-heroku-maven-plugin in your pom.xml:

          <server>heroku.com</server> <!-- name from settings.xml -->
          <procfile>web: java -Xmx256m -jar ./${project.artifactId}.jar ${PORT}</procfile>

Every artifact will be downloaded during deployment into the root directory of the application (in Heroku server). Maven coordinates are used to specify artifact locations (always five parts). Downloaded artifacts are renamed to artifactId.packaging format.

Run mvn deploy.

If you have any problems - don't hesitate to submit a ticket to github.

Cutting Edge Version

If you want to use current version of the product, you can do it with this configuration in your pom.xml: