Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-62

Exclude read-only components from plugin goal documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.4
    • 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

        1. readonly-component.patch
          0.8 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

              siveton Siveton Vincent
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: