|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.release.AbstractReleaseMojo
public abstract class AbstractReleaseMojo
Base class with shared configuration.
| Field Summary | |
|---|---|
protected File |
mavenHome
The M2_HOME parameter to use for forked Maven invocations. |
protected MavenProject |
project
|
protected ReleaseManager |
releaseManager
|
protected MavenSession |
session
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractReleaseMojo()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MavenProject project
protected ReleaseManager releaseManager
protected File mavenHome
M2_HOME parameter to use for forked Maven invocations.
protected MavenSession session
| Constructor Detail |
|---|
public AbstractReleaseMojo()
| Method Detail |
|---|
protected ReleaseEnvironment getReleaseEnvironment()
null.
public void execute()
throws MojoExecutionException,
MojoFailureException
MojoExecutionException
MojoFailureExceptionprotected 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||