commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: [continuum] BUILD FAILURE: Commons - Commons Lang -
Date Mon, 08 Mar 2010 12:11:44 GMT
Niall Pemberton wrote at Montag, 8. März 2010 12:48:

> On Mon, Mar 8, 2010 at 11:31 AM, sebb <sebbaz@gmail.com> wrote:
>> On 08/03/2010, Niall Pemberton <niall.pemberton@gmail.com> wrote:
>>> On Mon, Mar 8, 2010 at 3:41 AM, sebb <sebbaz@gmail.com> wrote:
>>> > The failure is due to the upgrade to Commons Parent 13, which does not
>>> > run on Java 1.4
>>> >
>>> > Not sure which plugins are the culprits.
>>> >
>>> > I've reverted Commons Lang 2.x to parent 12 for the time being.
>>>
>>>
>>> My preference would be to change Continuum to use JDK 1.5.
>>
>> That rather negates the purpose of using Continuum for Lang 2.
>>
>> AIUI, when Maven is run under Java 1.5, then the compiler uses the 1.5
>> libraries even if the target is 1.4, so incorrect use of 1.5 methods
>> is not caught.
> 
> Lang 2.x currently targets JDK 1.3 so we already have that issue.
> While it would be good for Continuum to pick up those issues we still
> need to build using Ant and JDK 1.3 to ensure nothing has crept into
> the code base for > JDK 1.3
> 
>> Once that is fixed, then I agree it would be simpler to run Maven under
>> 1.5.
> 
> AFAIK the only solution in maven is to have the compiler fork a
> separate JVM to compile the code:
> 
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-
using-different-jdk.html
> 
> Whether we can set that up in Continuum I have no idea.

An alternative should be the animal-sniffer plugin:
http://mojo.codehaus.org/animal-sniffer-maven-plugin/

However, I've not used it yet myself.

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message