Class SetScmTagMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.SetScmTagMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="set-scm-tag", aggregator=true, threadSafe=true) public class SetScmTagMojo extends AbstractVersionsUpdaterMojo
Updates the current project's SCM tag.
Since:
2.5
Author:
Anton Johansson
  • Constructor Details

    • SetScmTagMojo

      @Inject public SetScmTagMojo(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.eclipse.aether.RepositorySystem repositorySystem, Map<String,org.apache.maven.wagon.Wagon> wagonMap, Map<String,ChangeRecorder> changeRecorders)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Called when this mojo is executed.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractVersionsUpdaterMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - when things go wrong.
      org.apache.maven.plugin.MojoFailureException - when things go wrong.
    • update

      protected void update(MutableXMLStreamReader pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, XMLStreamException
      Description copied from class: AbstractVersionsUpdaterMojo
      Updates the pom.
      Specified by:
      update in class AbstractVersionsUpdaterMojo
      Parameters:
      pom - The pom to update.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If things go wrong.
      org.apache.maven.plugin.MojoFailureException - If things go wrong.
      XMLStreamException - If things go wrong.