org.codehaus.tycho.buildversion
Class ValidateVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.tycho.buildversion.AbstractVersionMojo
org.codehaus.tycho.buildversion.ValidateVersionMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ValidateVersionMojo
- extends AbstractVersionMojo
Validates project Maven and OSGi versions. For SNAPSHOT versions, OSGi version qualifier must be ".qualifier" and
unqualified Maven and OSGi versions must be equal. For RELEASE versions, OSGi and Maven versions must be equal.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateVersionMojo
public ValidateVersionMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
validateReleaseVersion
public void validateReleaseVersion(String mavenVersion,
String osgiVersion)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
validateSnapshotVersion
public void validateSnapshotVersion(String mavenVersion,
String osgiVersion)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2008-2011. All Rights Reserved.