You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2013/03/02 15:07:52 UTC

[jira] (MPLUGIN-142) Unable to add a prerequisite goal from an ant-based mojo

     [ https://jira.codehaus.org/browse/MPLUGIN-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MPLUGIN-142:
-----------------------------------

    Description: 
According to the documentation you should be able to add a prerequisite goal from an ant-based mojo using the following syntax:
{code:xml}
<pluginMetadata>
<mojos>
  <mojo>
.
.
.
    <execution>
      <goal>some:goal</goal>
    </execution>
.
.
.
  </mojo>
</mojos>
</pluginMetadata>
{code}

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).

  was:
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).

    
> Unable to add a prerequisite goal from an ant-based mojo
> --------------------------------------------------------
>
>                 Key: MPLUGIN-142
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-142
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Metadata Model
>    Affects Versions: 2.4.3
>            Reporter: Erik Godding Boye
>
> According to the documentation you should be able to add a prerequisite goal from an ant-based mojo using the following syntax:
> {code:xml}
> <pluginMetadata>
> <mojos>
>   <mojo>
> .
> .
> .
>     <execution>
>       <goal>some:goal</goal>
>     </execution>
> .
> .
> .
>   </mojo>
> </mojos>
> </pluginMetadata>
> {code}
> 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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira