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
-
Feldübersicht
Von Klasse geerbte Felder com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
baseDir, dateFormat, dirtyFlag, dirtyIgnoreUntracked, failGracefully, gitDir, head, project, propertyPrefixes, skip, skipNoGit
Von Schnittstelle geerbte Felder org.apache.maven.plugin.Mojo
ROLE
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
run
(GitRepository repository) This will first read all tags and walk the commit hierarchy down from HEAD until it finds one of the tags.Von Klasse geerbte Methoden com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
addProperty, execute, init, initRepository, prepareParameters
Von Klasse geerbte Methoden org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Konstruktordetails
-
TagMojo
public TagMojo()
-
-
Methodendetails
-
run
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 KlasseAbstractGitMojo
- Parameter:
repository
- The repository instance to use- Löst aus:
MavanagaiataMojoException
- if the tags cannot be read
-