Maven
  1. Maven
  2. MNG-4789

[regression] Difference in compile scope dependency resolution

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-beta-3
    • Fix Version/s: 3.0
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      maven-3.0-beta-2 vs. maven-3.0-beta-3 (trunk)

      Description

      There is a small difference in dependency resolution behaviour from 3.0-beta-2 to 3.0-beta-3. I have a project with multiple interdependent modules.

      module 2 -> module 1 -> thirdparty dep

      Module 1 has a compile scope dependency on thirdparty dep. Module 2 has a test scope dependency on module 1. Using dependency management, in 3.0-beta-2 module 2 ended up with a test scope dependency on thirdparty. In 3.0-beta-3 module 2 ends up with a compile scope dependency. "mvn dependency:tree" reports a test scope in both cases, but with maven-3.0-beta-3 the thirdparty dep appears in the compile classpath.

        Issue Links

          Activity

          Paul Gier created issue -
          Paul Gier made changes -
          Field Original Value New Value
          Summary [regression] [regression] Difference in compile scope dependency resolution
          Benjamin Bentmann made changes -
          Affects Version/s 3.0-beta-3 [ 16681 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-4156 [ MNG-4156 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-1895 [ MNG-1895 ]
          Paul Gier made changes -
          Attachment maven-3-dependency-issue.zip [ 51013 ]
          Paul Gier made changes -
          Attachment maven-3-dependency-issue.zip [ 51013 ]
          Paul Gier made changes -
          Attachment maven-3-dependency-issue.zip [ 51014 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MNG-4800 [ MNG-4800 ]
          Benjamin Bentmann made changes -
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Fix Version/s 3.0-beta-4 [ 16712 ]
          Status Open [ 1 ] Closed [ 6 ]
          Benjamin Bentmann made changes -
          Fix Version/s 3.0 [ 13142 ]
          Fix Version/s 3.0-beta-4 [ 16712 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12715062 ] Default workflow, editable Closed status [ 12754584 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12951363 ] Default workflow, editable Closed status [ 12987646 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development