Class AbstractVersionMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.toolchain.version.AbstractVersionMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AttachVersionMojo, UpdateVersionTextMojo

public abstract class AbstractVersionMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected File
    The project basedir.
    protected String
    The classifier to use for attaching the generated VERSION.txt artifact
    protected org.apache.maven.project.MavenProject
    Maven Project.
    protected org.apache.maven.project.MavenProjectHelper
    Maven ProjectHelper.
    protected String
    The type to use for the attaching the generated VERSION.txt artifact
    protected File
    The existing VERSION.txt file.

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected boolean
     

    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

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

    execute
  • Field Details

    • basedir

      @Parameter(property="project.basedir", required=true) protected File basedir
      The project basedir.
    • versionTextInputFile

      @Parameter(property="version.text.file", defaultValue="${project.basedir}/VERSION.txt") protected File versionTextInputFile
      The existing VERSION.txt file.
    • classifier

      @Parameter(property="version.text.output.classifier", defaultValue="version") protected String classifier
      The classifier to use for attaching the generated VERSION.txt artifact
    • type

      @Parameter(property="version.text.output.type", defaultValue="txt") protected String type
      The type to use for the attaching the generated VERSION.txt artifact
    • projectHelper

      @Component protected org.apache.maven.project.MavenProjectHelper projectHelper
      Maven ProjectHelper. (internal component)
    • project

      @Parameter(property="project", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
      Maven Project.
  • Constructor Details

    • AbstractVersionMojo

      public AbstractVersionMojo()
  • Method Details

    • ensureDirectoryExists

      protected void ensureDirectoryExists(File dir) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • hasVersionTextFile

      protected boolean hasVersionTextFile(String goal)