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

Execute goal does not passes from mojos.xml pluginMetadata

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2
    • Fix Version/s: 3.3
    • Component/s: Metadata Model
    • Labels:
      None

      Description

      In pluginMetadata (<name>.mojos.xml) that describes an ant-based plugin, adding
      <execution>
      <goal>foo:bar</goal>
      </execution>
      Doesn't make its way in to the plugin.xml.

      I tracked down the bug to a missing setter in:
      maven-plugin-tools-model-3.2
      org.apache.maven.plugin.tools.model.PluginMetadataParser
      line 131
      When copying the LifecycleExecution out of the Mojo into the MojoDescriptor,
      it sets the execution lifecycle and phase, but skips the goal.

      Trivial fix, not even worth a path, imho.

        Attachments

        1. MNG-5405.patch
          0.6 kB
          Ben Tatham

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              bentatham Ben Tatham
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: