The solution is to let the module A generate a jar with the test classes by adding to A's pom.xml:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> Then you can include the jar with the test classes from module A by adding to the depedencies of module B: <dependency> <groupId>groupA</groupId> <artifactId>A</artifactId> <version>versionA</version> <type>test-jar</type> <scope>test</scope> </dependency> Hope this helps. Cheers, Holger -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maarten Volders Sent: Friday, June 01, 2007 7:34 AM To: users@maven.apache.org Subject: Module B can't find base test class from module A during compilation All, I'm facing the following problem. I have a multi module project, one module (let's call it Module A) contains a base test class in moduleA/src/test/java/... Module B has some test classes which inherit from that base class in Module A but during compilation of the test class in Module B I get an error from maven compilation phase that he cannot find the base class in Module A. Module A is a dependency for Module B = pom.xml. Tests run in Module A are running fine, also so are the normal java files. So project dependencies seems to be working. So my questions are: - During test file compilation, does maven include the test classes from dependent modules - How can I let maven know that he also need to look at the test classes of its dependent modules while compiling its own test classes Grtz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]