maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <>
Subject [jira] [Created] (MPLUGIN-323) create @Requirement annotation to replace @Component (should be deprecated)
Date Sat, 18 Feb 2017 13:44:44 GMT
Hervé Boutemy created MPLUGIN-323:

             Summary: create @Requirement annotation to replace @Component (should be deprecated)
                 Key: MPLUGIN-323
             Project: Maven Plugin Tools
          Issue Type: Wish
          Components: maven-plugin-annotations, maven-plugin-tools-javadoc
    Affects Versions: 3.5
            Reporter: Hervé Boutemy

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:

2. in Plexus, injecting is marked with {{@Requirement}} annotation, when {{@Component}} is
used to define a component:

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

This message was sent by Atlassian JIRA

View raw message