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

create @Requirement annotation to replace @Component (should be deprecated)

    XMLWordPrintableJSON

Details

    Description

      injecting a Plexus component into a mojo is currently marked through @Component annotation (or @component javadoc tag)

      This "component" term is misleading for 2 reasons:
      1. in plugin descriptor, it creates a <requirement> XML element: http://maven.apache.org/ref/3-LATEST/maven-plugin-api/plugin.html#class_requirement

      2. in Plexus, injecting is marked with @Requirement annotation, when @Component is used to define a component: http://codehaus-plexus.github.io/plexus-containers/plexus-component-annotations/

      This annotation creates great confusion for years, then even if Plexus is being dropped for javax.inject, fixing this misleading terms would be beneficial IMHO

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            hboutemy Herve Boutemy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: