Class GitCommitIdMojo

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

    @Mojo(name="revision",
          defaultPhase=INITIALIZE,
          threadSafe=true)
    public class GitCommitIdMojo
    extends org.apache.maven.plugin.AbstractMojo
    Puts git build-time information into property files or maven's properties.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.regex.Pattern allowedCharactersForEvaluateOnCommit  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      GitCommitIdMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 Detail

      • allowedCharactersForEvaluateOnCommit

        protected static final java.util.regex.Pattern allowedCharactersForEvaluateOnCommit
    • Constructor Detail

      • GitCommitIdMojo

        public GitCommitIdMojo()
    • Method Detail

      • execute

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