Package org.codehaus.mojo.buildhelper
Class ReleasedVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
org.codehaus.mojo.buildhelper.ReleasedVersionMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="released-version",
defaultPhase=VALIDATE,
threadSafe=true)
public class ReleasedVersionMojo
extends AbstractDefinePropertyMojo
Resolve the latest released version of this project. This mojo sets the following properties:
[propertyPrefix].version [propertyPrefix].majorVersion [propertyPrefix].minorVersion [propertyPrefix].incrementalVersion [propertyPrefix].buildNumber [propertyPrefix].qualifierWhere the propertyPrefix is the string set in the mojo parameter.
- Since:
- 1.6
- Author:
- Robert Scholte
-
Field Summary
Fields inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
project
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.buildhelper.AbstractDefinePropertyMojo
defineProperty, getProject
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
ReleasedVersionMojo
public ReleasedVersionMojo()
-
-
Method Details
-
execute
public void execute()
-