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 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() |
List<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 MavenProject project
@Component protected ReleaseManager releaseManager
@Parameter(defaultValue="${session}", readonly=true, required=true) protected 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)
public List<MavenProject> getReactorProjects()
null
.protected void addArgument(String argument)
argument
- The argument to add, must not be null
.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.