Why does the Maven site for my plugin not show the parameters from the base class? -


i'm writing maven plugin, parameters common mojos. that's why wrote abstract base class containing them. works build, when create maven site plugin, plugin documentation individual goals doesn't show parameters.

what doing wrong? or bug of maven site plugin?

edit:

i need give more details: manage our data configuration , i18n texts in xml files. @ runtime, data resides in database. purpose of plugin check xml (two goals), compare database (two goals) , copy database (two goals).

since parameters required in goals, have abstract base classes contain maven parameters.

here's hierarchy comparison goals:

abstractmojo +-- basereferencedatamojo     +-- basereferencedatabasemojo         +-- basecomparisonmojo             +-- configurationcomparisonmojo             +-- i18ncomparisonmojo 

so, instance in basereferencedatamanagermojo, have following maven parameters:

public abstract class basereferencedatamanagermojo extends abstractmojo { ...  /**  * maven project.  */ @parameter(defaultvalue = "${project}", readonly = true, required = true) protected mavenproject project;  /**  * start directory, reference data files search recursively.  */ @parameter(defaultvalue = "src/main/resources", readonly = true, required = true, property = "startdirectory") protected file startdirectory;  ... } 

way down in configurationcomparisonmojo, have following parameters:

@mojo(name = "compare-configuration", defaultphase = lifecyclephase.package, requiresproject = true) public class configurationcomparisonmojo extends basecomparisonmojo { ...  /**  * stage: valid values {@code development}, {@code integration}, {@code staging} , {@code production}.  */ @parameter(readonly = true, required = true, property = "stage") private string stage;  ... } 

as wrote earlier, there's no problem configuring configurationcomparisonmojo with, instance, startdirectory - base class parameters injected correctly when mojo called.

however, in maven site build using (amongst others) maven-plugin-plugin (version 3.2), documentation page reference-data-manager:compare-configuration shows no parameters @ all.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -