How did you workout your jar file was not getting included in the test
classpath ?
Thanks
Lakshman
Run with the debug option set and redirect the output to a log file ("mvn -X
install > build.log").Checking the log you'll see something similar to the
following (look for "[DEBUG] Test Classpath :") :
[DEBUG] Adding to surefire test classpath: D:\Documents and
Settings\mutonhj\.m2\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-
api-2.0.jar
[DEBUG] Adding to surefire test classpath: D:\Documents and
Settings\mutonhj\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-
utils-1.1.jar
[DEBUG] Test Classpath :
[DEBUG] D:\MAVEN-WORK\eportal-webservices-junit\target\classes
[DEBUG] D:\MAVEN-WORK\eportal-webservices-junit\target\test-classes
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\javax\j2ee\j2ee\1.3.0\j2ee-1.3.0.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\za\co\pragmaticus\eportal\eportal-webservices\1.0.0\eportal-
webservices-1.0.0.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\commons-logging\commons-logging\1.0.4\commons-
logging-1.0.4.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\javax\xml\soap\saaj\1.2\saaj-1.2.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\oracle\ldap\ldapjclnt\1.0\ldapjclnt-1.0.jar
[DEBUG] D:\Documents and
Settings\mutonhj\.m2\repository\org\apache\log4j\log4j\1.2.13\log4j-
1.2.13.jar
[DEBUG] Setting system property [localRepository]=[D:\Documents and
Settings\mutonhj\.m2\repository]
[DEBUG] Setting system property
[basedir]=[D:\MAVEN-WORK\eportal-webservices-junit]
[INFO] Surefire report directory:
D:\MAVEN-WORK\eportal-webservices-junit\target\surefire-reports
I haven't managed to get past this problem.
Jeff Mutonho
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042