Maven Plugin Tools
  1. Maven Plugin Tools
  2. MPLUGIN-223

HelpMojo is not extracted when using java-annotations extractor

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The generated HelpMojo uses javadoc tags rather than Java annotations.

      If the plugin is only configured to use only the java-annotations extractor, then it does not recognise the HelpMojo as a valid mojo:

                <extractors>
                  <extractor>java-annotations</extractor>
                </extractors>
      

      In this case, the plugin will silently fail to include the 'help' goal in the plugin descriptor.

        Activity

        Hide
        Anthony Whitford added a comment -

        I too would like the option to go with the Java5 Annotations. Presently, I see 3 issues:

        1. The @Property annotations are commented out.
        2. The @Mojo annotation is missing.
        3. The legacy Javadoc style annotations should be removed (Java 5 or legacy, not both).
        Show
        Anthony Whitford added a comment - I too would like the option to go with the Java5 Annotations. Presently, I see 3 issues: The @Property annotations are commented out. The @Mojo annotation is missing. The legacy Javadoc style annotations should be removed (Java 5 or legacy, not both).
        Hide
        Dennis Lundberg added a comment -

        Fixed already by MPLUGIN-231.

        Added an IT in r1405948 to verify.

        Show
        Dennis Lundberg added a comment - Fixed already by MPLUGIN-231 . Added an IT in r1405948 to verify.

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Martin Ellis
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: