public abstract class AbstractReleaseMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
basedir |
protected File |
javaHome
The JAVA_HOME parameter to use for forked Maven invocations.
|
protected File |
localRepoDirectory
The command-line local repository directory in use for this build (if specified).
|
protected String |
mavenExecutorId
Role hint of the
MavenExecutor implementation to use. |
protected File |
mavenHome
The M2_HOME parameter to use for forked Maven invocations.
|
protected org.apache.maven.project.MavenProject |
project |
protected List |
reactorProjects |
protected ReleaseManager |
releaseManager |
protected org.apache.maven.execution.MavenSession |
session |
protected org.apache.maven.settings.Settings |
settings |
Constructor and Description |
---|
AbstractReleaseMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgument(String argument)
Add additional arguments.
|
protected ReleaseDescriptor |
createReleaseDescriptor()
Creates the release descriptor from the various goal parameters.
|
void |
execute() |
protected String |
getAdditionalProfiles()
Gets the comma separated list of additional profiles for the release build.
|
List |
getReactorProjects()
Gets the list of projects in the build reactor.
|
protected ReleaseEnvironment |
getReleaseEnvironment()
Gets the enviroment settings configured for this release.
|
protected void |
mergeCommandLineConfig(ReleaseDescriptor config,
ReleaseDescriptor sysPropertiesConfig)
This method takes some of the release configuration picked up from the command line system properties and copies
it into the release config object.
|
void |
setBasedir(File basedir)
Sets the base directory of the build.
|
protected File basedir
protected org.apache.maven.settings.Settings settings
protected org.apache.maven.project.MavenProject project
protected ReleaseManager releaseManager
protected List reactorProjects
protected File mavenHome
protected File javaHome
protected File localRepoDirectory
protected String mavenExecutorId
MavenExecutor
implementation to use.protected org.apache.maven.execution.MavenSession session
protected ReleaseEnvironment getReleaseEnvironment()
null
.public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected ReleaseDescriptor createReleaseDescriptor()
null
.protected String getAdditionalProfiles()
public void setBasedir(File basedir)
basedir
- The build's base directory, must not be null
.public List getReactorProjects()
null
.protected void addArgument(String argument)
argument
- The argument to add, must not be null
.protected void mergeCommandLineConfig(ReleaseDescriptor config, ReleaseDescriptor sysPropertiesConfig)
config
- The release configuration to merge the system properties into, must not be null
.sysPropertiesConfig
- The configuration from the system properties to merge in, must not be
null
.Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.