You could also produce a test-jar from the tests from A and include them as test-scope dependency to B.
See http://maven.apache.org/guides/mini/guide-attached-tests.html Tom On 4/19/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > You need a third module that will contain your share test classes (under > src/main/java) and you'll > add it as a dependency of module a and b with test scope. > > Emmanuel > > Patrick GIRY a écrit : > > I have defined two module A and B with a common parent module because B > > depend on A. I have imported the module as Eclipse project. The problem i > > have a TestCase class into the B module which extends a TestCase into the A > > module. When I run the test suite with the Eclipse console all is ok, but > > when I run the mvn test command into the B module, I have > > java.lang.NoClassDefFoundError with TestCase into A. How can I indicate to > > surefire plugin to include depend test classpath into it's classpath, to > > avoid to duplicate the TestCase into the A module? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]