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

Unable to add a prerequisite goal from an ant-based mojo

    XMLWordPrintableJSON

Details

    Description

      According to the documentation you should be able to add a prerequisite goal from an ant-based mojo using the following syntax:

      <pluginMetadata>
      <mojos>
        <mojo>
      .
      .
      .
          <execution>
            <goal>some:goal</goal>
          </execution>
      .
      .
      .
        </mojo>
      </mojos>
      </pluginMetadata>
      

      But this does not work. There is no error when building the mojo, but the goal element is ignored. The problem seems to be related to the fact that PluginMetadataParser does not map the execution.goal property of Mojo when converting it to MojoDescriptor (in the asDescriptor method).

      Attachments

        Activity

          People

            Unassigned Unassigned
            erikgb Erik Godding Boye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: