public abstract class AbstractReleaseMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.project.MavenProject |
project |
protected ReleaseManager |
releaseManager |
protected org.apache.maven.execution.MavenSession |
session |
Constructor and Description |
---|
AbstractReleaseMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgument(String argument)
Add additional arguments.
|
protected ReleaseDescriptorBuilder |
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() |
protected org.apache.maven.project.MavenProject |
getProject()
only used for unit tests in which some required values of the project would be null
|
List<org.apache.maven.project.MavenProject> |
getReactorProjects()
Gets the list of projects in the build reactor.
|
protected ReleaseEnvironment |
getReleaseEnvironment()
Gets the environment settings configured for this release.
|
void |
setBasedir(File basedir)
Sets the base directory of the build.
|
void |
setPomFileName(String pomFileName) |
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Component protected ReleaseManager releaseManager
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
protected ReleaseEnvironment getReleaseEnvironment()
null
.protected ReleaseDescriptorBuilder 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 void setPomFileName(String pomFileName)
protected org.apache.maven.project.MavenProject getProject()
public List<org.apache.maven.project.MavenProject> getReactorProjects()
null
.protected void addArgument(String argument)
argument
- The argument to add, must not be null
.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.