heroku:deploy

Full name:

br.com.ingenieux.cedarhero:heroku-maven-plugin:0.0.3-SNAPSHOT:deploy

Description:

Deploys the staging (prepared) repository under Heroku.

See the docs for PrepareMojo as well.

Obligatory showoff example (for existing java projects):

  <plugins>
    <plugin>
      <groupId>br.com.ingenieux.cedarhero</groupId>
      <artifactId>heroku-maven-plugin</artifactId>
      <configuration>
        <app>lovely-app-7777</app>
      </configuration>
    </plugin>
  </plugins>

Once pom is configured (and you've got a packaged war project in the right directory), you can simply prepare and deploy with:

$ mvn heroku:prepare heroku:deploy

Attributes:

  • Requires a Maven project to be executed.

Optional Parameters

Name Type Since Description
app String - The App Name to push
User property is: heroku.app.
sshKey String - The local path to the SSH key to be used.
Default value is: ${user.home}/.ssh/id_rsa.
User property is: heroku.sshKey.
stagingDirectory File - Git Staging Dir (should not be under target/)
Default value is: ${project.basedir}/tmp-git-deployment-staging.
User property is: heroku.stagingDirectory.

Parameter Details

app:

The App Name to push
  • Type: java.lang.String
  • Required: No
  • User Property: heroku.app

sshKey:

The local path to the SSH key to be used.
  • Type: java.lang.String
  • Required: No
  • User Property: heroku.sshKey
  • Default: ${user.home}/.ssh/id_rsa

stagingDirectory:

Git Staging Dir (should not be under target/)
  • Type: java.io.File
  • Required: No
  • User Property: heroku.stagingDirectory
  • Default: ${project.basedir}/tmp-git-deployment-staging