Class MavenVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
org.codehaus.mojo.buildhelper.MavenVersionMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Deprecated
@Mojo(name="maven-version",
defaultPhase=VALIDATE,
threadSafe=true)
public class MavenVersionMojo
extends AbstractDefinePropertyMojo
Deprecated.
Store the maven core version in a property
maven.version.- Since:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.rtinfo.RuntimeInformationDeprecated.The RuntimeInforamtion for the current instance of Maven.private StringDeprecated.The name of the property in which to store the version of Maven.Fields inherited from class AbstractDefinePropertyMojo
projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractDefinePropertyMojo
defineProperty, getProjectMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
runtime
@Component private org.apache.maven.rtinfo.RuntimeInformation runtimeDeprecated.The RuntimeInforamtion for the current instance of Maven. -
versionProperty
Deprecated.The name of the property in which to store the version of Maven.
-
-
Constructor Details
-
MavenVersionMojo
public MavenVersionMojo()Deprecated.
-
-
Method Details
-
execute
public void execute()Deprecated.Main plugin execution
-
3.0.4has such property build in: MNG-4112. So goal can be removed.