[ https://jira.codehaus.org/browse/MPLUGIN-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=327061#comment-327061 ]
SebbASF commented on MPLUGIN-245: --------------------------------- The stand-alone Maven Help plugin describe goal does display user properties correctly. Rather than maintain two sets of code, why not generate a help plugin that extends the DescribeMojo? Just set up the "plugin" field and call the execute() method. Unfortunately all the DescribeMojo fields are private, but reflection can be used. For a better solution, the plugin DescribeMojo field could be made protected (or add a setter). The attached sample is generic (just the package would need changing); it obviously has a dependency on the help plugin. > @Parameter property names are not written to the plugin-help.xml file > --------------------------------------------------------------------- > > Key: MPLUGIN-245 > URL: https://jira.codehaus.org/browse/MPLUGIN-245 > Project: Maven 2.x Plugin Tools > Issue Type: Bug > Reporter: SebbASF > > The generated HelpMojo fails to show user parameter names if the Mojo is > generated from Java 5 annotations. > This appears to be because the plugin-help.xml file does not include the > information. HelpMojo.java is expecting to find an "expression" tag. -- 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