Hi, all, I am encounting with a fatal error while I try to run Junit by maven. I give the information of my env as followings.
*Information of maven installed on my local host.* Command : mvn --version - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Java version: 1.6.0_03 Default locale: zh_CN, platform encoding: UTF-8 OS name: "linux" version: "2.6.27-10-generic" arch: "i386" family: "unix" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *Junit Test Jar And Configration.* junit-4.5.jar. Currently, I am building the project C. Pro-C has a direct parent Pro-B and Pro-B has a direct parent Pro-A. A and B were designed with pom packaging. Junit related dependence declaration in A. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.5</version> </dependency> </dependencies> </dependencyManagement> ... in B - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <project>... <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> ...</project> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - None in C. *My Test Case Design*: @RunWith(Parameterized.class) *Result*: I executed mvn:test to try get all my test classes run. Unfortunately, maven reported a error to me and just showed the type of error - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tests in error: initializationError(FULL_CLASS_NAME). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I can not address this issue only by this error. Is there a switch in maven to let me get all the tracking stack? Or is it result from the compatiblity issue among maven, junit and JDK? Any suggestions would be welcome. Thank you. Linghua