Randall, I had the same problem with you. It seems JRE extension jars get ignored in test phase The way I found to get around it is to define a dependency explicitly like below: <dependency> <groupId>sun.jdk</groupId> <artifactId>sunjce_provider</artifactId> <version>1.5</version> <scope>test</scope> </dependency>
You will need to install the jar into your local repository using: $mvn install:install-file -DgroupId=sun.jdk -DartifactId=sunjce_provider \ -Dversion=1.5 -Dpackaging=jar -Dfile=YOUR_JAVA_HOME/jre/lib/ext/sunjce_provider.jar I believe this problem is a bug. Cheers, Jeffrey Ai Randall Fidler wrote: > > Hello, > > > > Any ideas why Maven can see classes in sunjce_provider.jar > (SunJCE) at compile time but not when it runs tests? I wouldn't think > it's a dependency issue as the jar is bundled with the jre I'm using > (1.5_11) and is NOT listed as a dependency. If it was a test vs compile > dependency issue I could understand but it's not listed as a dependency > and as I said, compiles just fine - it's only during test goal that it > can't find the class. > > > > Thoughts? > > > > Regards, > > > > Randall > > > -- View this message in context: http://www.nabble.com/Library-Resource-used-in-test-goal-tf3813440s177.html#a13594573 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]