heroku:prepare

Full name:

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

Description:

Creates / prepares a Staging Repository for Heroku Deployment

A Staging Repository is a git repository (by default, under [basedir]/tmp-git-deployment-staging) made from the following elements:

The sourceStack includes a "stub pom", meant to satisfy herokus' need for a pom.xml.

In the future, it would be used to optimize the slug generation process (like assigning/replacing xml config files for addon values, or something like that).

For now, a barebones sourceStack git repository includes:

  • The basic Procfile
  • The webapp Runtime
  • Other settings

You could consider either forking the sourceStackRepository or changing it locally prior to deployment. Future versions will pay more attention to it

Attributes:

  • Requires a Maven project to be executed.

Optional Parameters

Name Type Since Description
sourceArtifactDirectory File - Artifact to Deploy. Will be copied over to 'webapp'
Default value is: ${project.build.directory}/${project.build.finalName}.
User property is: heroku.sourceArtifactDirectory.
sourceStackRepository String - Git Source Stack Repository (Git URL)
Default value is: https://bitbucket.org/ingenieux/cedarhero-jetty.git.
User property is: heroku.sourceStackRepository.
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

sourceArtifactDirectory:

Artifact to Deploy. Will be copied over to 'webapp'
  • Type: java.io.File
  • Required: No
  • User Property: heroku.sourceArtifactDirectory
  • Default: ${project.build.directory}/${project.build.finalName}

sourceStackRepository:

Git Source Stack Repository (Git URL)
  • Type: java.lang.String
  • Required: No
  • User Property: heroku.sourceStackRepository
  • Default: https://bitbucket.org/ingenieux/cedarhero-jetty.git

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