Class ReleaseMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="release",
          requiresProject=true,
          threadSafe=false,
          aggregator=true)
    public class ReleaseMojo
    extends org.apache.maven.plugin.AbstractMojo
    Release the project simply by stripping the -SNAPSHOT part of the version. Useful in continuous delivery pipelines.
    Author:
    adrien.lauer@gmail.com
    • Constructor Detail

      • ReleaseMojo

        public ReleaseMojo()
    • Method Detail

      • 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
      • getContext

        public Context getContext()