GNU bug report logs - #31943
Some Maven bugs

Previous Next

Package: guix;

Reported by: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>

Date: Fri, 22 Jun 2018 22:40:01 UTC

Severity: normal

Done: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 31943 <at> debbugs.gnu.org (full text, mbox):

From: Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de>
To: Julien Lepiller <julien <at> lepiller.eu>
Cc: 31943 <at> debbugs.gnu.org
Subject: Re: bug#31943: Some Maven bugs
Date: Mon, 25 Jun 2018 12:13:45 +0200
[Message part 1 (text/plain, inline)]
On Sat, 23 Jun 2018 12:20:33 +0200
Julien Lepiller <julien <at> lepiller.eu> wrote:

> Le Sat, 23 Jun 2018 00:39:35 +0200,
> Björn Höfling <bjoern.hoefling <at> bjoernhoefling.de> a écrit :
> 

> > 1) The following propagated inputs are used from bash scripts
> > and are missing: which, coreutils
> > 
> > 2) There is something wrong with the version output:  
> 
> Fixed with 7504f3c3d3a2fbd0f901757a9bd3175e424c11ca and
> e27c43d94e23daf6b114b03688a51c924890a286 :)

That was quick :-) Thanks.


> > 4) I cannot use icedteaX (x \in {1,2}) (i.e. X=2 means JDK 1.7) with
> > Maven. Is this a bug or a fact?
> >   
> 
> This is because some of the dependencies cannot be built without
> java8. I think there is an option in ant to build with a new jdk but
> stay compatible with older jdks. Our ant-build-system should probably
> use that.

Maven requires JDK 1.7 or above to run
(https://maven.apache.org/download.cgi). So support for JDK7 should
work, JDK6 not. Forget icedtea <at> 1.

I see that some of the dependencies like maven-resolver-util are
explicitly setting the #jdk to icedtea-8. So no wonder they produce JDK
1.8 code.

For the <javac ..> task, there is target property, see docs here:

https://ant.apache.org/manual/Tasks/javac.html

You can also set the option ant.build.javac.target:

https://ant.apache.org/manual/javacprops.html#target

We could introduce the latter one in the ant-build-system, with nothing
set being the default (i.e. the output of the used JDK).


Björn
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 7 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.