de.smartics.maven.plugin.buildmetadata
Class BuildPointMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.smartics.maven.plugin.buildmetadata.AbstractBuildMojo
de.smartics.maven.plugin.buildmetadata.BuildPointMojo
-
All Implemented Interfaces:
-
ContextEnabled,
Mojo
-
public final class BuildPointMojo
-
extends
AbstractBuildMojo
Adds the build time to the properties file and runs all providers flagged with Provider.RUN_AT_BUILD_POINT
.
-
Since:
-
1.0
-
maven-goal:
-
build-point
-
maven-phase:
-
prepare-package
-
maven-requiresProject:
-
maven-description:
-
Provides the duration of the build at the given point to the build properties and runs all providers flagged with 'runAtBuildPoint' with a value of 'true'. The mojo is run at the specified point. Note that dependent on the phase, the build information (such as the duration of the build) may or may not packaged with the artifacts.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TMP_BUILD_END
public static final String TMP_BUILD_END
-
Constant to store the current time stamp. Must be removed before the build properties are written to the project.
The value of this constant is "build.tmp.timestamp".
-
Constant Field Value:
-
"build.tmp.timestamp"
BuildPointMojo
public BuildPointMojo()
execute
public void execute()
throws MojoExecutionException,
MojoFailureException
-
-
-
Specified by:
-
execute
in interface
Mojo
-
Overrides:
-
execute
in class
AbstractBuildMojo
-
-
Throws:
-
MojoExecutionException
-
MojoFailureException
Copyright © 2006-2012
Kronseder & Reiner GmbH - smartics. All Rights Reserved.