I'm trying to make sure my test-jar published from maven has the right transitive dependencies.
The test-jar doesn't, for instance, generate with a dependency on the non-test-jar.
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.
Is there any way to make depending on BBB's test jar properly pull in transitive dependencies?
I have example code for all this in https://github.com/nkronenfeld/transitive-test-dependencies
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.