maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <>
Subject Resolving test interdependency with maven.
Date Sat, 15 Jan 2011 21:17:18 GMT
Hi all,
I am beginner at using maven.

I am using 
Maven version: 2.0.9
Java version: 1.6.0_13
OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"

I have a very basic question, it would be great if someone can help me out
with this. Thanks in advance.

I have the following scenario:

Module A has some tests which Module B depends on.

So I did this in my module A pom file I have:

And in module B pom file I have the dependency on test-jar in module A.


Both these modules are part of my project.

Now from the top level pom.xml if I do mvn clean test, then the test phase
for module B fails saying that its not able to find the test-jar for module
A. Is there something I am missing, most of the documentation I read said
that this is how its done? Do I have to run maven install before I run maven
test to get the test-jar installed?


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

View raw message