Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4789

[regression] Difference in compile scope dependency resolution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-3
    • 3.0
    • Dependencies
    • None
    • 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.

      Attachments

        1. maven-3-dependency-issue.zip
          6 kB
          Paul Gier
        2. maven-3-dependency-issue.zip
          25 kB
          Paul Gier

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              pgier Paul Gier
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: