I did try with -X (and the output was in the original message) - however the process I see being forked doesn't match that classpath:
[DEBUG] Test Classpath : [DEBUG] /Users/amrk/IdeaProjects/dbng/dbng-core/target/classes [DEBUG] /Users/amrk/IdeaProjects/dbng/dbng-core/target/test-classes [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-beans/2.0.6/spring- beans-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-dao/2.0.6/spring- dao-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/junit/junit/3.8.1/junit- 3.8.1.jar [DEBUG] /Users/amrk/.m2/repository/commons-logging/commons-logging/1.1/commons- logging-1.1.jar [DEBUG] /Users/amrk/.m2/repository/javax/servlet/servlet-api/2.3/servlet- api-2.3.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-jdbc/2.0.6/spring- jdbc-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/commons-collections/commons-collections/2.1/commons- collections-2.1.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-core/2.0.6/spring- core-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/logkit/logkit/1.0.1/logkit-1.0.1.jar [DEBUG] /Users/amrk/.m2/repository/org/springframework/spring-context/2.0.6/spring- context-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/avalon-framework/avalon-framework/4.1.3/avalon- framework-4.1.3.jar [DEBUG] /Users/amrk/.m2/repository/commons-dbcp/commons-dbcp/1.2.1/commons- dbcp-1.2.1.jar [DEBUG] /Users/amrk/.m2/repository/org/apache/maven/maven-artifact/2.0.6/maven- artifact-2.0.6.jar [DEBUG] /Users/amrk/.m2/repository/postgresql/postgresql/8.2-504.jdbc4 /postgresql-8.2-504.jdbc4.jar [DEBUG] /Users/amrk/.m2/repository/org/testng/testng/5.1/testng- 5.1-jdk15.jar [DEBUG] /Users/amrk/.m2/repository/xml-apis/xml-apis/1.0.b2/xml- apis-1.0.b2.jar [DEBUG] /Users/amrk/.m2/repository/xerces/xercesImpl/2.0.2/xercesImpl- 2.0.2.jar [DEBUG] /Users/amrk/.m2/repository/commons-pool/commons-pool/1.2/commons- pool-1.2.jar [DEBUG] /Users/amrk/.m2/repository/log4j/log4j/1.2.14/log4j- 1.2.14.jar [DEBUG] Setting system property [localRepository]=[/Users/amrk/.m2/repository] [DEBUG] Setting system property [basedir]=[/Users/amrk/IdeaProjects/dbng/dbng-core] [DEBUG] Using JVM: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java [INFO] Surefire report directory: /Users/amrk/IdeaProjects/dbng/dbng-core/target/surefire-reports Forking command line: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -classpath /Users/amrk/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus- archiver-1.0-alpha-7.jar:/Users/amrk/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/Users/amrk/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/Users/amrk/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/Users/amrk/.m2/repository/org/testng/testng/5.1/testng-5.1-jdk15.jar org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire32297tmp /tmp/surefire32298tmp For instance - I see the postgresql driver jar mentioned under "Test class path" but its not mentioned in the -classpath parameters for Surefires forked process. On 7/17/07, Terala, Satish (IS Consultant) <[EMAIL PROTECTED]> wrote:
Try running maven with -X option. This will print out the exact classpath thats being set at compile/runtime. This seems to be case of an incompatible jar on JDK5.
