public abstract class AbstractReleaseMojo extends AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected MavenProject |
project |
protected ReleaseManager |
releaseManager |
protected MavenSession |
session |
| 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.
|
protected String |
getAdditionalProfiles()
Gets the comma separated list of additional profiles for the release build.
|
protected File |
getBasedir() |
List<MavenProject> |
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.
|
getLog, getPluginContext, setLog, setPluginContext@Component protected MavenProject project
@Component protected ReleaseManager releaseManager
@Component protected MavenSession session
protected ReleaseEnvironment getReleaseEnvironment()
null.protected ReleaseDescriptor createReleaseDescriptor()
null.protected String getAdditionalProfiles()
protected final File getBasedir()
public void setBasedir(File basedir)
basedir - The build's base directory, must not be null.public List<MavenProject> 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-2013 The Apache Software Foundation. All Rights Reserved.