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

HelpMojo phases fails when using java-annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.4
    • None
    • 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

        1. test-maven-plugin.zip
          2 kB
          Dan Godfrey

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              dgodfrey99 Dan Godfrey
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: