Maven 2 & 3

Transitive dependencies not following attached tests.

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

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.

Issue Links

Activity

Hide
Brett Porter added a comment -

FYI, I'm pretty sure this is already in JIRA somewhere, but I can't be bothered looking for it right now

Show
Brett Porter added a comment - FYI, I'm pretty sure this is already in JIRA somewhere, but I can't be bothered looking for it right now
Hide
peter royal added a comment -

You're right. I found two such instances, MNG-1378 and MNG-1571

Show
peter royal added a comment - You're right. I found two such instances, MNG-1378 and MNG-1571

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: