Thanks Dennis, We thought about this, but to be on the safe side, we think compiling with a 1.4 JDK would be better if possible. From peoples' experience, is setting these properties to 1.4 a guarantee that the compiles code will run in a 1.4 JRE?
Thanks, Aidan -----Original Message----- From: Dennis Geurts [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 10:59 AM To: Maven Users List Subject: Re: Different Java Versions for different sub-projects? Aidan, I don't know if this'll solve your problem, but isn't is enough to specify the following properties: maven.compile.source=1.4 maven.compile.target=1.4 for the projects that need to compile with jdk1.4 compatibility ?? http://maven.apache.org/reference/plugins/java/properties.html provides more info. Dennis On 7/1/05, Aidan Donohoe <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anybody know if there is there is a way to specify different JDKs > for different projects? > > I have two sub projects, one of which must be compiled and ran with > JDK 1.5 and another which should be compiled and ran with JDK 1.4. > > Is there a property which I can change which will point maven to a > different JDK before compiling a project? Or would I have to > dynamically change JAVA_HOME - but would this be possible? > > Thanks for any info, > > Aidan. > (Using Maven 1.0.2) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
