org.codehaus.mojo.buildhelper
public class ParseVersionMojo extends AbstractMojo
[propertyPrefix].majorVersion [propertyPrefix].minorVersion [propertyPrefix].incrementalVersion [propertyPrefix].qualifier [propertyPrefix].buildNumberWhere the propertyPrefix is the string set in the mojo parameter. Note that the behaviour of the parsing is determined by org.apache.maven.artifact.versioning.DefaultArtifactVersion An osgi compatible version will also be created and made available through the property:
[propertyPrefix].osgiVersionThis version is simply the original version string with the first instance of '-' replaced by '.' For example, 1.0.2-beta-1 will be converted to 1.0.2.beta-1
Since: 1.3
Version: $Id: ParseVersionMojo.java 10036 2009-06-23 16:26:53Z pgier $
UNKNOWN: parse-version validate
Method Summary | |
---|---|
void | execute()
Execute the mojo. |
String | getOsgiVersion(ArtifactVersion version)
Make an osgi compatible version String from an ArtifactVersion |
void | parseVersion(String version, Properties props)
Parse a version String and add the components to a properties object.
|
void | setPropertyPrefix(String prefix) |
Throws: MojoExecutionException if the plugin execution fails.
Parameters: version
Returns:
Parameters: version props