I had the same problem. I have use the dependency:unpack plugin. http://www.nabble.com/Compile-with-one-JDK-and-tests-with-several-tf3235157s177.html#a9040309
I develop with jdk 1.5 and to execute tests with jdk 1.6 I unpack jar of tests Sean Qiu wrote: > > Thanks. > > But it only tell the plugin where the new classlib is, what about the > java.exe or vm? > > 2007/3/22, Wendy Smoak <[EMAIL PROTECTED]>: >> On 3/21/07, Sean Qiu <[EMAIL PROTECTED]> wrote: >> >> > Using the surefire plugin, is it invoke java from PATH directory? >> > So if i want to run the unit test with different JRE, what i should do >> > is just change path property to my new jre? >> > >> > Or i should add some configuration to tell the surefire plugin where >> > the java is ? >> >> This might help... >> http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions >> >> -- >> Wendy >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Sean Qiu > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-run-unit-test-with-different-JRE-tf3445090s177.html#a9621014 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]