maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SebbASF (JIRA)" <>
Subject [jira] (MPH-95) Make "plugin" field protected so DescribeMojo can be extended
Date Thu, 27 Jun 2013 23:24:03 GMT
SebbASF created MPH-95:

             Summary: Make "plugin" field protected so DescribeMojo can be extended
                 Key: MPH-95
             Project: Maven 2.x Help Plugin
          Issue Type: Improvement
            Reporter: SebbASF

The standalone Help Mojo has been updated to handle annotations, but the generated help mojos
added to mojos have not.

Rather than copy the code to every new Mojo, the generated HelpMojo could be simplified by
subclassing DescribeMojo and passing in the plugin Id.

However, the "plugin" field is private. Making it protected (or providing a protected setter)
would allow subclasses to set the field without needing to use reflection.

A further enhancement might be to support a method whereby the calling plugin can provide
a link to its plugin.xml or other config item that provides the necessary information, thus
reducing the code needed in the calling plugin

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:

View raw message