[ 
https://issues.apache.org/jira/browse/MPLUGIN-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MPLUGIN-241.
----------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still applies, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> Add Annotation for Objects injected by Maven
> --------------------------------------------
>
>                 Key: MPLUGIN-241
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-241
>             Project: Maven Plugin Tools
>          Issue Type: Improvement
>    Affects Versions: 3.0, 3.1, 3.2
>            Reporter: Robert Scholte
>            Priority: Major
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to