@Mojo(name="create-timestamp",
defaultPhase=INITIALIZE,
requiresProject=true,
threadSafe=true)
public class CreateTimestampMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.project.MavenProject |
project
The maven project.
|
private java.util.List |
reactorProjects
Contains the full list of projects in the reactor.
|
private boolean |
skip
Whether to skip this execution.
|
private java.lang.String |
timestampFormat
Apply this java.text.SimpleDateFormat to the timestamp.
|
private java.lang.String |
timestampPropertyName
You can rename the timestamp property name to another property name if desired.
|
| Constructor and Description |
|---|
CreateTimestampMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(property="maven.buildNumber.skip",
defaultValue="false")
private boolean skip
@Parameter(defaultValue="${project}",
required=true,
readonly=true)
private org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${reactorProjects}",
required=true,
readonly=true)
private java.util.List reactorProjects
@Parameter(property="maven.buildNumber.timestampPropertyName",
defaultValue="timestamp")
private java.lang.String timestampPropertyName
@Parameter(property="maven.buildNumber.timestampFormat",
defaultValue="")
private java.lang.String timestampFormat