org.jfrog.maven.annomojo.annotations.MojoRequiresOnline 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.*;
/**
* Some mojos cannot execute if they don't have access to a network
* connection. If Maven is operating in offline mode, such mojos will
* cause the build to fail. This flag controls whether the mojo requires
* Maven to be online.
* The default is false in MAven.
*/
@MojoAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
public @interface MojoRequiresOnline {
/**
* The default is true for easy flagging.
*
* @return true if the mojo goal fails in offline mode (mvn -o).
*/
boolean value() default true;
}