title: How does one specify transitive dependencies of a test-jar for a maven project?
body: <p>I'm trying to make sure my test-jar published from maven has the right transitive dependencies.</p>
  
  <p>The test-jar doesn't, for instance, generate with a dependency on the non-test-jar.</p>
  
  <p>Similarly, say AAA publishes a test-jar, and BBB contains a test-scoped dependency for AAA's test-jar.  In CCC's tests, when I use a class from BBB's test-jar that uses a class from AAA's test-jar, I get a 'class not found' error on the class from AAA's test-jar - i.e., BBB's tests' transitive dependencies aren't properly recorded at all.</p>
  
  <p>Is there any way to make depending on BBB's test jar properly pull in transitive dependencies?</p>
  
  <p>I have example code for all this in <a href="https://github.com/nkronenfeld/transitive-test-dependencies" rel="noreferrer">https://github.com/nkronenfeld/transitive-test-dependencies</a></p>
  
  <p>There are two commented-out dependencies in CCC/pom.xml for the BBB's normal jar, and AAA's test-jar, neither of which seem like they should be needed.  CCC's test goal won't however, run without either.</p>