Class SetVersionsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.l2x6.cq.maven.SetVersionsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="set-versions", requiresProject=true, inheritByDefault=false) public class SetVersionsMojo extends org.apache.maven.plugin.AbstractMojo
A faster and more advanced alternative to versions:set.
Since:
2.5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Path
     
    protected org.apache.maven.execution.MavenSession
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    • basePath

      protected Path basePath
    • session

      @Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
  • Constructor Details

    • SetVersionsMojo

      public SetVersionsMojo()
  • 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