http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions
http://hudson.gotdns.com/wiki/display/HUDSON/Maven2+project+and+JDK5 Wayne On 8/26/08, Peter Horlock <[EMAIL PROTECTED]> wrote: > Hm, maybe I still have not been explixit enough - > > I know how to tell maven that I am using a certain JVM on the current > system, even with profiles. > But I want maven itself to switch the java version (to use another > executable) it uses - so something like: > > mvn package -PJVM5 > mvn package -PJVM6 > > This should: > include / exclude dependencies dependending on the java version (easy part) > change the JVM and compile with this version instead of the systems default > version. > > Cheers, > > Peter > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
