org.jfrog.maven.annomojo.annotations.MojoRequiresProject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-plugin-anno Show documentation
Show all versions of maven-plugin-anno Show documentation
Maven Anno Mojo module with all the JDK 1.5 annotations needed when writing maven plugin classes (Mojo).
Every maven plugins using Anno Mojo should be directly or transitively dependant on this POM.
package org.jfrog.maven.annomojo.annotations;
import java.lang.annotation.*;
/**
* Tells Maven that a valid project instance must be present for this mojo to
* execute.
* The default in maven is true.
*/
@MojoAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
public @interface MojoRequiresProject {
/**
* The default is true for annotation readability.
* NOTE: Adding this annotation will not change the default
* maven behavior that sets this to true.
*
* @return false if the mojo can be excuted without a POM file
*/
boolean value() default true;
}