[ https://jira.codehaus.org/browse/MPLUGIN-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MPLUGIN-142: ---------------------------------- Component/s: maven-plugin-tools-ant > Unable to add a prerequisite goal from an ant-based mojo > -------------------------------------------------------- > > Key: MPLUGIN-142 > URL: https://jira.codehaus.org/browse/MPLUGIN-142 > Project: Maven Plugin Tools > Issue Type: Bug > Components: maven-plugin-tools-ant, 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 was sent by Atlassian JIRA (v6.1.6#6162)