RE: Compiling sub-modules/artifacts in different jdks...
Thank you, both - will try and let you know. I was hoping there was a way to compile the EJB in 1.5 but fork the process to compile the client with a different JDK (1.4) within the generateClient portion of the EJB plugin (vs. a separate custom module for the EJB client), though. Thanks, Daryl -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 8:38 AM To: Maven Users List Subject: Re: Compiling sub-modules/artifacts in different jdks... On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is anyone aware of a way to compile artifacts or even sub-modules under different JDKs? I have an EJB that I compile under 1.5 but I want to generate the ejb-client compiled under 1.4 (there's nothing in the interfaces or DTOs that are 1.4-incompatible) so that 1.4-based clients can call it. Any thoughts? I assume you've configured the compiler plugin to target 1.5 at the top level of your project [1], so (as Tim mentioned) you can override the configuration to target 1.4 in the sub-module. Something that Jakarta Commons does (with Maven 1) is add X-Compile-Target: 1.4 to the manifest, to reassure people since it will otherwise just say Build-Jdk: 1.5.0_06. I haven't figured out how to do this with m2 yet. [1] http://maven.apache.org/plugins/maven-compiler-plugin/howto.html -- Wendy - 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]
Re: Compiling sub-modules/artifacts in different jdks...
You can always use something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin to compile code for a specific jvm version. But this will use the jdk maven was started with to compile the code. Don't know if this is good enough for you. -Tim [EMAIL PROTECTED] schrieb: Is anyone aware of a way to compile artifacts or even sub-modules under different JDKs? I have an EJB that I compile under 1.5 but I want to generate the ejb-client compiled under 1.4 (there's nothing in the interfaces or DTOs that are 1.4-incompatible) so that 1.4-based clients can call it. Any thoughts? Thanks, Daryl - 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]
Re: Compiling sub-modules/artifacts in different jdks...
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is anyone aware of a way to compile artifacts or even sub-modules under different JDKs? I have an EJB that I compile under 1.5 but I want to generate the ejb-client compiled under 1.4 (there's nothing in the interfaces or DTOs that are 1.4-incompatible) so that 1.4-based clients can call it. Any thoughts? I assume you've configured the compiler plugin to target 1.5 at the top level of your project [1], so (as Tim mentioned) you can override the configuration to target 1.4 in the sub-module. Something that Jakarta Commons does (with Maven 1) is add X-Compile-Target: 1.4 to the manifest, to reassure people since it will otherwise just say Build-Jdk: 1.5.0_06. I haven't figured out how to do this with m2 yet. [1] http://maven.apache.org/plugins/maven-compiler-plugin/howto.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]