public abstract class AbstractHerokuMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
appName
The name of the Heroku app.
|
protected List<String> |
buildpacks
The buildpacks to run against the partial build.
|
protected Map<String,String> |
configVars
Configuration variables that will be set on the Heroku app.
|
protected List<String> |
includes
A set of file patterns to include.
|
protected boolean |
includeTarget
If the target directory should also be included.
|
protected String |
jdkVersion
The version of the JDK Heroku with run the app with.
|
protected boolean |
logProgress
If upload progress should be logged to debug.
|
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.execution.MavenSession |
mavenSession |
protected org.apache.maven.plugin.BuildPluginManager |
pluginManager |
protected Map<String,String> |
processTypes
The process types used to run on Heroku (similar to Procfile).
|
protected String |
warFile
The path to the war file that will be deployed with the `deploy-war` target.
|
protected String |
webappRunnerVersion
The version of webapp-runner to use.
|
| Constructor and Description |
|---|
AbstractHerokuMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<Path> |
findWarFilePath(Path projectDirectory)
Common helper to find the projects WAR file either by referencing the explicitly configured WAR file or searching
the build directory for a WAR file.
|
getLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${session}",
readonly=true)
protected org.apache.maven.execution.MavenSession mavenSession
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject mavenProject
@Component protected org.apache.maven.plugin.BuildPluginManager pluginManager
@Parameter(name="appName",
property="heroku.appName")
protected String appName
@Parameter(name="jdkVersion",
property="heroku.jdkVersion")
protected String jdkVersion
@Parameter(name="configVars") protected Map<String,String> configVars
@Parameter(name="includes") protected List<String> includes
@Parameter(name="includeTarget",
defaultValue="true")
protected boolean includeTarget
@Parameter(name="logProgress",
defaultValue="false")
protected boolean logProgress
@Parameter(name="buildpacks") protected List<String> buildpacks
@Parameter(name="processTypes") protected Map<String,String> processTypes
@Parameter(name="warFile") protected String warFile
@Parameter(name="webappRunnerVersion") protected String webappRunnerVersion
protected Optional<Path> findWarFilePath(Path projectDirectory) throws org.apache.maven.plugin.MojoExecutionException, IOException
projectDirectory - The root directory of the projectorg.apache.maven.plugin.MojoExecutionException - If there is no explicitly configured WAR file path or the projects packaged as a WARIOException - If an IO error occurred during WAR file searchCopyright © 2022. All rights reserved.