Maven
  1. Maven
  2. MNG-1895

Dependencies in two paths are not added to resolution when scope needs to be updated in the nearest due to any of nearest parents

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 2.0.2
    • Fix Version/s: 2.0.3
    • Labels:
      None
    • Complexity:
      Expert
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      scopes are not correctly calculated for this case

      my pom: a compile, b test
      a: c compile, d compile
      b: d compile

      then d ends in test scope because d is closer to my project through the path b-d

      I think scope importance should also be taken into account

        Issue Links

          Activity

          Hide
          Carlos Sanchez added a comment -

          This is the it test

          Show
          Carlos Sanchez added a comment - This is the it test
          Hide
          John Casey added a comment -

          bumping to next release, so we can assess any changes to existing behavior that this might imply.

          Show
          John Casey added a comment - bumping to next release, so we can assess any changes to existing behavior that this might imply.
          Hide
          Carlos Sanchez added a comment -

          This is ablocker issue if you need to depend in a test-jar type artifact and its normal jar, as it'll make all its deps end in scope test

          Show
          Carlos Sanchez added a comment - This is ablocker issue if you need to depend in a test-jar type artifact and its normal jar, as it'll make all its deps end in scope test

            People

            • Assignee:
              Carlos Sanchez
              Reporter:
              Carlos Sanchez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: