Re: RE : [solved] product codes at java 1.4, test sources at java 1.5
I had a similar problem today and managed to solve it without having to use the bootclasspath idea. Just thought I'd post here in case others are running into the issue. Here's how I got it to work... org.apache.maven.plugins maven-compiler-plugin java-1.3-compile compile compile 1.3 1.3 java-1.5-compile process-test-sources testCompile 1.5 1.5 Regards James Wiltshire -- View this message in context: http://www.nabble.com/-solved--product-codes-at-java-1.4%2C-test-sources-at-java-1.5-tf2233884s177.html#a8770351 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [solved] product codes at java 1.4, test sources at java 1.5
I just added a note to warn that this is only a maven2 hack, not an official solution to multiple target JRE. Wendy Smoak a écrit : On 9/7/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I solved the issue of compiling the application code for Java 1.3 AND using java5 for tests : Thank you! And to keep it from being lost forever in the mail archives: http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions Please edit as necessary... ask on dev@ if you don't have access. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : [solved] product codes at java 1.4, test sources at java 1.5
Good to see it can help someone ! Please notice this is a maven2 hack (compile test prior to test compilation to avoid compilation errors...) that may be solved by having official support for a testCompile != compile configuration. Could you say what idea did this gives you ? Maybe it will gives me other ideas ;-) Nico. LECAN Damien a écrit : Waoh, good job. Your special configuration gave me a lot of ideas (Especially section in plugin configuration) Thanks Damien Lecan Message d'origine De: Nicolas De Loof [mailto:[EMAIL PROTECTED] Date: jeu. 07/09/2006 17:33 À: Maven Users List Objet : [solved] product codes at java 1.4, test sources at java 1.5 Here is my POM : org.apache.maven.plugins maven-compiler-plugin 1.3 1.3 ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar compile-tests process-test-sources testCompile 1.5 1.5 ${java.home}/lib/rt.jar com.sun rt 1.3.1_08 Nico. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [solved] product codes at java 1.4, test sources at java 1.5
On 9/7/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I solved the issue of compiling the application code for Java 1.3 AND using java5 for tests : Thank you! And to keep it from being lost forever in the mail archives: http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions Please edit as necessary... ask on dev@ if you don't have access. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [solved] product codes at java 1.4, test sources at java 1.5
Waoh, good job. Your special configuration gave me a lot of ideas (Especially section in plugin configuration) Thanks Damien Lecan Message d'origine De: Nicolas De Loof [mailto:[EMAIL PROTECTED] Date: jeu. 07/09/2006 17:33 À: Maven Users List Objet : [solved] product codes at java 1.4, test sources at java 1.5 Here is my POM : org.apache.maven.plugins maven-compiler-plugin 1.3 1.3 ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar compile-tests process-test-sources testCompile 1.5 1.5 ${java.home}/lib/rt.jar com.sun rt 1.3.1_08 Nico. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[solved] product codes at java 1.4, test sources at java 1.5
I solved the issue of compiling the application code for Java 1.3 AND using java5 for tests : Application code is compiled based on java 1.3 using compiler bootclasspath argument. Tests are compiled by adding a compiler execution prior to test-phase (as I didn't find a way to configure testCompile to use a != configuration). Here is my POM : org.apache.maven.plugins maven-compiler-plugin 1.3 1.3 ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar compile-tests process-test-sources testCompile 1.5 1.5 ${java.home}/lib/rt.jar com.sun rt 1.3.1_08 Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]