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

Transitive dependencies not following attached tests.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.1
    • None
    • None
    • None

    Description

      I followed the instructions at http://maven.apache.org/guides/mini/guide-attached-tests.html to create a jar with attached tests.

      I have a project with two modules, A and B

      B depends on A, and B needs the tests from A as well. Using the 'attached tests' jar works for compilation. However, if module A has a test-scoped dependency of, say, jmock, then when adding the test-jar from module A as a test dependency of B, the test-scoped dependencies that A declares are not picked up by B.

      imo, when creating a test-jar from a module, any test-scoped dependencies should follow the test-jar around.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              proyal Peter A Royal Jr.
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: