Maven
  1. Maven
  2. MNG-4436

[regression] Singleton components can get instantianted multiple times

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-3
    • Fix Version/s: 3.0-alpha-4
    • Component/s: None
    • Labels:
      None

      Description

      As Igor discovered, the changes made for MNG-4429 caused a regression regarding lookup of singleton components. In detail, a scenario like

      /** @component */
      private Component singleton1;
      
      /** @component roleHint="default" */
      private Component singleton2;
      

      will get two different instances of the same singleton component.

        Activity

        Hide
        Benjamin Bentmann added a comment -

        To be more precise, this is a regression in Maven 3.x. The bug is present in all released versions of Maven 2.x

        Show
        Benjamin Bentmann added a comment - To be more precise, this is a regression in Maven 3.x. The bug is present in all released versions of Maven 2.x
        Hide
        Benjamin Bentmann added a comment -

        Fixed in r834989 by updating to plexus:1.5.1.

        Show
        Benjamin Bentmann added a comment - Fixed in r834989 by updating to plexus:1.5.1.

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Benjamin Bentmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development