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

HelpMojo phases fails when using java-annotations

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.4
    • Component/s: None
    • Labels:
      None

      Description

      When using the java-annotations to specify the mojo metadata, the HelpMojo generating goal fails if

       <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>

      isn't specified.

      The helpmojo goal needs to execute during generate-sources phase, otherwise the generated java file isn't compiled in the compile phase. However, when using the java-annotations, there isn't any metadata to scan at that point, it is only available after the compile phase.

      So, can the helpmojo goal only generate the helpmojo.java and not scan for any metadata. The descriptor phase already does this anyway, including generating plugin-help.xml.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              hboutemy Herve Boutemy
              Reporter:
              dgodfrey99 Dan Godfrey

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment