You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Topping (JIRA)" <ji...@codehaus.org> on 2011/07/08 04:16:42 UTC

[jira] Created: (MNG-5130) Allow mojo to bind to wildcard goal

Allow mojo to bind to wildcard goal
-----------------------------------

                 Key: MNG-5130
                 URL: https://jira.codehaus.org/browse/MNG-5130
             Project: Maven 2 & 3
          Issue Type: Improvement
          Components: Plugin API
            Reporter: Brian Topping


When defining a mojo, metadata generated by the @goal javadoc annotation associates the mojo with a goal in a 1:1 relationship. For a current project, it would be very helpful if that could be a 1:n relationship whereby a mojo could be called for any goal not otherwise defined -- a wildcard goal.

Particular use case is the goal acts as a selector for doing something important but that would otherwise require an additional -D parameter.  This is important for cli invocation.

Implementation should scan all goals for a plugin before falling back to a wildcard mojo, if one exists.  It would be undefined or illegal to have more than one wildcard mojo.

I doubt I'll get time to work on this, but I'll submit a patch if I do.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira