Package org.eclipse.tycho.buildversion
Class ValidateIdMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.buildversion.AbstractVersionMojo
-
- org.eclipse.tycho.buildversion.ValidateIdMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="validate-id", defaultPhase=VALIDATE) public class ValidateIdMojo extends AbstractVersionMojoValidates that project Maven and OSGi ids match.
-
-
Field Summary
-
Fields inherited from class org.eclipse.tycho.buildversion.AbstractVersionMojo
packaging, project, projectTypes
-
-
Constructor Summary
Constructors Constructor Description ValidateIdMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()private voidfailBuildDueToIdMismatch()private java.lang.StringmismatchMessageFor(java.lang.String eclipseIdKey)-
Methods inherited from class org.eclipse.tycho.buildversion.AbstractVersionMojo
getOSGiId, getOSGiVersion
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
failBuildDueToIdMismatch
private void failBuildDueToIdMismatch() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
mismatchMessageFor
private java.lang.String mismatchMessageFor(java.lang.String eclipseIdKey)
-
-