Package org.codehaus.mojo.build
Class CreateMetadataMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.build.AbstractScmMojo
org.codehaus.mojo.build.CreateMetadataMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="create-metadata",
defaultPhase=GENERATE_RESOURCES,
requiresProject=true,
threadSafe=true)
public class CreateMetadataMojo
extends AbstractScmMojo
This mojo discovers latest SCM revision, current timestamp, project version, and project name then write them to one
or more java property files together with a set of user provided properties. It also has option to add the output
file to resource classpath for jar packaging.
-
Field Summary
Fields inherited from class org.codehaus.mojo.build.AbstractScmMojo
password, project, revisionOnScmFailure, scmConnectionUrl, scmDeveloperConnectionUrl, scmDirectory, scmManager, scmTag, settings, shortRevisionLength, skip, username
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.codehaus.mojo.build.AbstractScmMojo
checkResult, getScmRepository, getScmRevision, info
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CreateMetadataMojo
public CreateMetadataMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getRevision
- Throws:
org.apache.maven.plugin.MojoExecutionException
-