Class VersionInfoMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.hadoop.maven.plugin.versioninfo.VersionInfoMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="version-info")
public class VersionInfoMojo
extends org.apache.maven.plugin.AbstractMojo
VersionInfoMojo calculates information about the current version of the
codebase and exports the information as properties for further use in a Maven
build. The version information includes build time, SCM URI, SCM branch, SCM
commit, and an MD5 checksum of the contents of the files in the codebase.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
VersionInfoMojo
public VersionInfoMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-