You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2008/08/08 22:54:26 UTC
[jira] Closed: (MPLUGIN-33) Unrecognized tag when trying to fork
lifecycle from an ant-based mojo
[ http://jira.codehaus.org/browse/MPLUGIN-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Siveton closed MPLUGIN-33.
----------------------------------
Resolution: Not A Bug
It is a normal issue since the execute tag doesn't exist. Try <execution> instead of.
FYI I added the xsd and the generated documentation in [r684087|http://svn.apache.org/viewvc?rev=684087&view=rev]
> 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 Tools
> 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