When using the mvn javadoc:jar with the Apache Maven Javadoc Plugin is it possible to target only annotated methods where a parameter is set to true?

Viewed 27

For the following class, is it possible to only generate javadoc for methods where MyAnnotation has a property set to true? For the following example, I'd like to create a set of docs where only myMethodThree is included using some configuration of the command mvn javadoc:jar

/**
 * Javadoc one
 */
public static void myMethodOne() {
    // do stuff
}

/**
 * Javadoc two
 */
@MyAnnotation(myParam =  false)
public static void myMethodTwo() {
    // do stuff
}

/**
 * Javadoc three
 */
@MyAnnotation(myParam =  true)
public static void myMethodThree() {
    // do stuff
}
0 Answers
Related