If you run: mvn -X test you should be able to decipher your classpath during the test-phase and see whats missing. Cheers, Per-Henrik
On Tue, Sep 14, 2010 at 4:00 PM, nitingupta183 <[email protected]> wrote: > > Hi All, > > I have got a multi-project setup in which one project is acting as a parent > project. Test classes in few of my projects are dependent upon test classes > on other projects. I have resolved the test classes dependency with the help > of maven-jar-plugin ( goal test-jar) & by importing the test classifier > dependency in test scope in the dependent project. > > Individual test cases run absolutely fine. However, when I run package, > test, install targets on my dependent project, they fail. The reason that is > coming out in logs is a test failure. Exactly those tests are failing which > have dependency on other project's test classes. No class def found. > > Please help me in solving this issue. i am using surefire plugin for running > tests. > -- > View this message in context: > http://maven.40175.n5.nabble.com/Class-loading-issues-while-running-tests-tp2839157p2839157.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
