Klasse TagMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
com.github.koraktor.mavanagaiata.mojo.TagMojo
Alle implementierten Schnittstellen:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="tag", defaultPhase=INITIALIZE, threadSafe=true) public class TagMojo extends AbstractGitMojo
This goal provides the most recent Git tag in the "mavanagaiata.tag" and "mvngit.tag" properties. This goal provides the most recent Git tag name in the "mavanagaiata.tag.name" and "mvngit.tag.name" properties. Additionally, more exact information as per git describe is provided in the "mavanagaiata.tag.describe" and "mvngit.tag.describe" properties
Seit:
0.1.0
Autor:
Sebastian Staudt
  • Konstruktordetails

    • TagMojo

      public TagMojo()
  • Methodendetails

    • run

      public void run(GitRepository repository) throws MavanagaiataMojoException
      This will first read all tags and walk the commit hierarchy down from HEAD until it finds one of the tags. The name of that tag is written into "mavanagaiata.tag.name" and "mvngit.tag.name" respectively.

      A more canonical representation as per git describe is stored in "mavanagaiata.tag.describe" and "mvngit.tag.describe".

      Angegeben von:
      run in Klasse AbstractGitMojo
      Parameter:
      repository - The repository instance to use
      Löst aus:
      MavanagaiataMojoException - if the tags cannot be read