Class RevertMojo

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

@Mojo(name="revert", threadSafe=true) public class RevertMojo extends org.apache.maven.plugin.AbstractMojo
Restores the pom from the initial backup.
Since:
1.0-alpha-3
Author:
Stephen Connolly
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.maven.project.ProjectBuilder
    The (injected) ProjectBuilder instance

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RevertMojo(org.apache.maven.project.ProjectBuilder projectBuilder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • projectBuilder

      protected final org.apache.maven.project.ProjectBuilder projectBuilder
      The (injected) ProjectBuilder instance
      Since:
      2.14.0
  • Constructor Details

    • RevertMojo

      @Inject protected RevertMojo(org.apache.maven.project.ProjectBuilder projectBuilder)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException