Package org.apache.maven.scm.plugin
Class UpdateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.scm.plugin.AbstractScmMojo
-
- org.apache.maven.scm.plugin.UpdateMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="update", aggregator=true) public class UpdateMojo extends AbstractScmMojoUpdate the local working copy with the latest source from the configured scm url.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.project.MavenProjectprojectThe Maven project.private java.lang.StringrevisionKeyThe project property where to store the revision name.private booleanrunChangelogRun Changelog after update.private java.lang.StringscmVersionThe version (revision number/branch name/tag name).private java.lang.StringscmVersionTypeThe 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 UpdateMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
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 revisionKeyThe project property where to store the revision name.
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe Maven project.
-
runChangelog
@Parameter(property="runChangelog", defaultValue="false") private boolean runChangelogRun Changelog after update.
-
-
Constructor Detail
-
UpdateMojo
@Inject public UpdateMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-