Package org.apache.maven.scm.plugin
Class UpdateSubprojectsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.scm.plugin.AbstractScmMojo
-
- org.apache.maven.scm.plugin.UpdateSubprojectsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="update-subprojects") public class UpdateSubprojectsMojo extends AbstractScmMojo
Updates all projects in a multi project build. This is useful for users who have adopted the flat project structure where the aggregator project is a sibling of the sub projects rather than sitting in the parent directory.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.project.MavenProject
project
The Maven project.private java.lang.String
revisionKey
The project property where to store the revision name.private java.lang.String
scmVersion
The version (revision number/branch name/tag name).private java.lang.String
scmVersionType
The version type (branch/tag/revision) of scmVersion.-
Fields inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAG
-
-
Constructor Summary
Constructors Constructor Description UpdateSubprojectsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
-
-
-
-
Field Detail
-
scmVersionType
@Parameter(property="scmVersionType") private java.lang.String scmVersionType
The version type (branch/tag/revision) of scmVersion.
-
scmVersion
@Parameter(property="scmVersion") private java.lang.String scmVersion
The version (revision number/branch name/tag name).
-
revisionKey
@Parameter(property="revisionKey", defaultValue="scm.revision") private java.lang.String revisionKey
The project property where to store the revision name.
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject project
The Maven project.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractScmMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-