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

test-jar dependency clobbers transitive dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0
    • None
    • Plugins and Lifecycle
    • None

    Description

      Specifying a test-jar dependency clobbers any transitive dependency on
      that project.

      eg

      projectA publishes jar and test-jar
      projectB depends on projectA.jar (scope compile)
      projectC depends on projectB.jar (scope compile) and projectA.test-jar
      (scope test)

      In projectC, the test scoped projectA.test-jar dependency effectively
      clobbers the compile scoped transitive dependency on projectA.jar. ie
      projectA.jar is no longer in projectC's compile scope dependency list.

      If I explicitly specify the projectA.jar compile dependency in the projectC POM it is resolved correctly.

      There are currently other issues with test-jar dependency
      resolution that may be related.

      MNG-1378 <http://jira.codehaus.org/browse/MNG-1378>

      According to Brett "It shouldn't be clobbered, as
      the conflict ID for a dependency is group:artifact:type:classifier" but this isn't what I am seeing.

      Attachments

        1. itMNG1568.tar.gz
          11 kB
          Andrew Moore

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              amm Andrew Moore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: