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 AbstractScmMojo
Update the local working copy with the latest source from the configured scm url.
  • Field Details

    • scmVersionType

      @Parameter(property="scmVersionType") private String scmVersionType
      The version type (branch/tag/revision) of scmVersion.
    • scmVersion

      @Parameter(property="scmVersion") private String scmVersion
      The version (revision number/branch name/tag name).
    • revisionKey

      @Parameter(property="revisionKey", defaultValue="scm.revision") private 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.
    • runChangelog

      @Parameter(property="runChangelog", defaultValue="false") private boolean runChangelog
      Run Changelog after update.
  • Constructor Details

    • UpdateMojo

      public UpdateMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractScmMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException