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]

Reply via email to