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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1, 3.2
    • 3.3
    • Metadata Model
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: