Additionally, if you'll need to point the bootstrap classpath of the compiler to the Java 1.4.2 libraries. So, the configuration would need to be something like this.
<plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> <compilerArguments> <bootclasspath> c:/j2sdk1.4.2_11/jre/lib/rt.jar </bootclasspath> </compilerArguments> </configuration> </plugin> Note: The actual JARs needed on the bootclasspath may vary depending on JDK. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 9:59 AM To: users@maven.apache.org Subject: RE: Plugin versions and JDK You should (unless I misunderstood you) be able to set your JAVA_HOME to 1.5 and still compile in 1.4. In your pom, you would need something like... ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> </configuration> </plugin> ... </plugins> </build> ... -----Original Message----- From: Fisher, Michael (IT) [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 11:23 AM To: 'Maven Users List' Subject: Plugin versions and JDK Hello, Quick question regarding JDK versions and running Maven2 plugins... Maven requires a JAVA_HOME system property to be set in order to run, when I set this to point to a 1.4.2_06 JDK, I get an UnsupportedClassVersion exception when I get to the surefire test cycle (Using version 2.0 of Surefire). When looking at the JAR, it seems to have been built with 1.5.2_05. Does this mean I need to be running a 1.5+ JDK in order to use the latest version of such plugins? The reason I ask, is because even though I could build my software on 1.5+, I cannot deploy it to an environment running above 1.4.2. What is the suggested work around for this? Thanks, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. ------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]