/28/2006 07:05 PM
Please respond to
Maven Users List users@maven.apache.org
To
Maven Users List users@maven.apache.org
cc
Subject
Re: [M2] Compiling with JDK 1.4
Check this out to actually use another JDK
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven
JDK for compilation?
_Mang Lau
Carlos Sanchez [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
03/28/2006 07:05 PM
Please respond to
Maven Users List users@maven.apache.org
To
Maven Users List users@maven.apache.org
cc
Subject
Re: [M2] Compiling with JDK 1.4
Check this out
I too have had to override the JAVA_HOME JDK, though in my case it was to
compile for 1.3 rather than 1.4. What you seem to be missing is setting the
bootclasspath to the correct Java runtime library. Below is the
configuration I use. I hope this helps.
plugin
Could it be possible to set this rt.jar as a (system ?) dependency,
something like this :
bootclasspath${getDependencyPath(java:rt:1.3)}/bootclasspath
Siegmann Daniel, NY a écrit :
I too have had to override the JAVA_HOME JDK, though in my case it was to
compile for 1.3 rather than 1.4.
This should work better :
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
compilerVersion1.3/compilerVersion
source1.3/source
target1.3/target
] Compiling with JDK 1.4
This should work better :
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
compilerVersion1.3/compilerVersion
source1.3/source
target1.3/target
bootclasspathC:/j2sdk1.4.1/jre/lib/**/*.jar/bootclasspath ?
_Mang Lau
Mang Jun Lau [EMAIL PROTECTED]
03/28/2006 02:31 PM
Please respond to
Maven Users List users@maven.apache.org
To
Maven Users List users@maven.apache.org
cc
Subject
Re: [M2] Compiling with JDK 1.4
Thank you both for your
Check this out to actually use another JDK
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
forktrue/fork
compilerVersion1.3/compilerVersion
executableC:/Program
Try 'maven clean' first then recompile.
Somehow if the class files exist in target dir, the compiler may not
overwrite them. These class files may have been compiled in 1.5 prior to
your changes to pom.xml
Cheers,
AK
-Original Message-
From: Mang Jun Lau [mailto:[EMAIL PROTECTED]