All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jfrog.maven.annomojo.annotations.MojoInheritedByDefault Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.4.1
Show newest version
package org.jfrog.maven.annomojo.annotations;

import java.lang.annotation.*;

/**
 * Tells Maven that the this plugin's configuration should be inherted from
 * a parent POM by default. The default is true in Maven.
 * If the user specifies false in the plugin configuration
 * it will ovveride this annotation value.
 */
@MojoAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
public @interface MojoInheritedByDefault {
    /**
     * 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 inheritance should be stop.
     */
    boolean value() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy