maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicolas de loof <>
Subject Re: 2.2.0 and JDK 1.5
Date Thu, 30 Apr 2009 05:21:31 GMT
I still build java 1.3 projects (Websphere 5.0.2) with a JDK6_u13.
I' use the maven-compiler <bootclasspaht> parameter to point on a Java1.3
JRE rt.jar, to avoid reference to unsupported classes/mehod. This is the
simplier/safer way AFAIK. Users only have to define a property
<java1.3.home> in settings.xml (and have a Java1.3 JRE installed).

Another option I allredy tester is to use rt.jar as a dependency from [2].
This can be used to avoid the property setting, but require manual
installation of the RT artifact (assuming you use SUN JRE).

Another option is to use animal-sniffer [1] plugin to check the code.

Anyway, JRE used by maven to run is not a blocker to compile to pre-1.5



2009/4/30 Brett Porter <>

> I think this is the same as those on 1.3 now... you set source and target
> and either use animal sniffer, or you go through the bigger configuration
> step of an external JDK (using the current config options available).
> Getting toolchains support in the plugins out would certainly be a good
> thing to do to make this easier and would help contextualise the release a
> bit too.
> Cheers,
> Brett
> On 30/04/2009, at 1:23 PM, John Casey wrote:
>  I just had a disquieting thought:
>> Assuming we require JDK 1.5 for Maven 2.2.0, I don't know how to tell
>> users to build projects that require JDK 1.4, using a JDK 1.4 compiler. From
>> what I've been able to find, the toolchains stuff isn't used by any released
>> plugin versions, which means we'd have to release these plugins before we
>> could support that use case in a 2.2.0/1.5+ world.
>> Can somebody please help me out with this? How do we support the 1.4 use
>> case if we require JDK 1.5+ in Maven itself?
>> Thanks,
>> -john
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message