Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-241

Add Annotation for Objects injected by Maven

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              rfscholte Robert Scholte
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: