maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iapazmino <>
Subject Test classes depending on other module's test classes
Date Tue, 06 Sep 2011 21:16:05 GMT

I have a multimodule project where classes in moduleA depends from classes
in moduleB. So, moduleB is declared as a provided dependency in moduleA.
Besides this dependency,test-classes in moduleA depends from classes and
test-classes in moduleB.

Following the
guide for attached tests  recommends I should enable the jar plugin to
produce the tests jar and change the type tag in the dependency declaration
to test-jar, but this causes not only to fail because test-classes are
missing but also because production-classes are also missing from moduleB.

How to declare the dependency for the test-classes as provided-scoped and
for the test-classes as test-scoped?

Thanks in advance,

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message