From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#31943: Some Maven bugs Date: Mon, 25 Jun 2018 12:13:45 +0200 Message-ID: <20180625121345.72e0349b@alma-ubu> References: <20180623003935.21f7da0b@alma-ubu> <20180623122033.31edf218@lepiller.eu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/rDrMSEasX4M+IdASTka1Q8r"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXOVc-0000H2-0f for bug-guix@gnu.org; Mon, 25 Jun 2018 06:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXOVW-0003ka-9y for bug-guix@gnu.org; Mon, 25 Jun 2018 06:14:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXOVW-0003jn-56 for bug-guix@gnu.org; Mon, 25 Jun 2018 06:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXOVV-0002Wx-MZ for bug-guix@gnu.org; Mon, 25 Jun 2018 06:14:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180623122033.31edf218@lepiller.eu> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Julien Lepiller Cc: 31943@debbugs.gnu.org --Sig_/rDrMSEasX4M+IdASTka1Q8r Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 23 Jun 2018 12:20:33 +0200 Julien Lepiller wrote: > Le Sat, 23 Jun 2018 00:39:35 +0200, > Bj=C3=B6rn H=C3=B6fling a =C3=A9crit : >=20 > > 1) The following propagated inputs are used from bash scripts > > and are missing: which, coreutils > >=20 > > 2) There is something wrong with the version output: =20 >=20 > Fixed with 7504f3c3d3a2fbd0f901757a9bd3175e424c11ca and > e27c43d94e23daf6b114b03688a51c924890a286 :) That was quick :-) Thanks. > > 4) I cannot use icedteaX (x \in {1,2}) (i.e. X=3D2 means JDK 1.7) with > > Maven. Is this a bug or a fact? > > =20 >=20 > 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@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 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=C3=B6rn --Sig_/rDrMSEasX4M+IdASTka1Q8r Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlswwFoACgkQvyhstlk+X/26kgCfZtMAldywfeTvVNwiGwagg+BL 920AoJF67B/u+AqqtEL+A+jV3jIG5Ytp =j72S -----END PGP SIGNATURE----- --Sig_/rDrMSEasX4M+IdASTka1Q8r--