Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Maven 2.0.7
-
Patch
Description
Currently, a mojo field declared like
/**
* @component
* @readonly
*/
private MavenProjectHelper projectHelper;
will make it into the site documentation for the goal (i.e. mymojo-mojo.html), causing confusion for users of the plugin.
This problem seems to arise from JavaMojoDescriptorExtractor.extractParameters() which does not mark @component fields as read-only. This in turn, will make PluginXdocGeneratorMojo.filterParameters() keep the field for documentation.
The attached patch shows two possible solutions.
Attachments
Attachments
Issue Links
- is related to
-
MPLUGIN-57 Mojo fields @component and no @parameter annotations are still considered parameters and can't be distinguished when it became a Parameter Object
- Closed