Unrecognized tag when trying to fork lifecycle from an ant-based mojo ---------------------------------------------------------------------
Key: MPLUGIN-33 URL: http://jira.codehaus.org/browse/MPLUGIN-33 Project: Maven 2.x Plugin Plugin Issue Type: Bug Affects Versions: 2.3 Environment: Windows XP, maven-2.0.7 Reporter: Scott Myron Attachments: hello-plugin.zip When defining an ant-based mojo based on this[1] document, it mentions I can use the following syntax to have my mojo fork a new lifecycle: <pluginMetadata> <mojos> <mojo> . . . <execute> <lifecycle>my-custom-lifecycle</lifecycle> <phase>package</phase> <!-- OR --> <goal>some:goal</goal> </execute> . . . </mojo> </mojos> </pluginMetadata> However, this does not work. When trying to run 'package' on the plugin, I get the following error: Unrecognised tag: 'execute' (position: START_TAG seen ...<execute>... @5:13) -->\r\n\t\t\t<execute>... @7:13) The project is attached. I tried increasing the version of the maven-plugin-ant-tools to version 2.1, but I still received the same error. [1] http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira