Robert Scholte created MPLUGIN-241:
--------------------------------------

             Summary: Add Annotation for Objects injected by Maven
                 Key: MPLUGIN-241
                 URL: https://jira.codehaus.org/browse/MPLUGIN-241
             Project: Maven 2.x Plugin Tools
          Issue Type: Improvement
    Affects Versions: 3.2, 3.1, 3.0
            Reporter: Robert Scholte


With version 3.0 we've introduced Annotations.

There are several objects which are injected by Maven, but is hard to find the 
list of available objects.

We decided to make life a bit easier by adding some magic to the @Component 
tag, by recognizing the Type of the field, for instance {{MavenProject}}

But Components are injected differently then these objects, so this seems to 
have been a poor choice.

Maybe it's better to add something like 
{code}
@Reference( ENUMVALUE )
{code}

where ENUMVALUE can be:
* PROJECT
* SESSION
* SETTINGS
* MOJOEXECUTION
* PLUGIN
* LOCALREPOSITORY
* REACTORPROJECTS
* ... (any rootObject)








--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to