public abstract class BaseMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected Long |
buildNumber
The build number to use in the release version.
|
protected List<String> |
modulesToForceRelease
A module to force release on, even if no changes has been detected.
|
protected List<String> |
modulesToRelease
The modules to release, or no value to to release the project from the
root pom, which is the default.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project.
|
protected List<org.apache.maven.project.MavenProject> |
projects |
| Constructor and Description |
|---|
BaseMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureJsch(org.apache.maven.plugin.logging.Log log) |
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="project",
required=true,
readonly=true,
defaultValue="${project}")
protected org.apache.maven.project.MavenProject project
@Parameter(property="projects",
required=true,
readonly=true,
defaultValue="${reactorProjects}")
protected List<org.apache.maven.project.MavenProject> projects
@Parameter(property="buildNumber") protected Long buildNumber
The build number to use in the release version. Given a snapshot version of "1.0-SNAPSHOT" and a buildNumber value of "2", the actual released version will be "1.0.2".
By default, the plugin will automatically find a suitable build number. It will start at version 0 and increment this with each release.
This can be specified using a command line parameter ("-DbuildNumber=2") or in this plugin's configuration.
@Parameter(alias="modulesToRelease",
property="modulesToRelease")
protected List<String> modulesToRelease
Copyright © 2015–2016. All rights reserved.