Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
3.0, 3.1, 3.2
-
None
-
None
-
None
Description
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
@Reference( ENUMVALUE )
where ENUMVALUE can be:
- PROJECT
- SESSION
- SETTINGS
- MOJOEXECUTION
- PLUGIN
- LOCALREPOSITORY
- REACTORPROJECTS
- ... (any rootObject)
Attachments
Issue Links
- is related to
-
MPLUGIN-204 recognize classical Maven objects as components
- Closed
- relates to
-
MPLUGIN-249 give snippets to show use of expressions to get Maven objects
- Closed