Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C8335200C32 for ; Thu, 9 Mar 2017 13:55:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C6A8F160B67; Thu, 9 Mar 2017 12:55:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1DED6160B64 for ; Thu, 9 Mar 2017 13:55:25 +0100 (CET) Received: (qmail 23768 invoked by uid 500); 9 Mar 2017 12:55:25 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 23752 invoked by uid 99); 9 Mar 2017 12:55:25 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 12:55:25 +0000 Received: from [10.10.44.52] (unknown [87.191.39.154]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 74AF51A0193 for ; Thu, 9 Mar 2017 12:55:24 +0000 (UTC) From: Benedikt Ritter Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [JENKINS] fixing builds that require less than Java 7 Date: Thu, 9 Mar 2017 13:55:21 +0100 References: To: Commons Developers List In-Reply-To: Message-Id: <0E8C3B21-9793-4928-B754-BF51CDDB0D8A@apache.org> X-Mailer: Apple Mail (2.3259) archived-at: Thu, 09 Mar 2017 12:55:27 -0000 Hi, > Am 09.03.2017 um 13:29 schrieb sebb : >=20 > Jenkins now requires Java 7 for running Maven builds >=20 > However it is possible to use the -Pjava-1.6 (etc) profiles to > continue to build with the target JVM >=20 > 1) Update the main JVM to at least 1.7 so Jenkins-Maven works >=20 > 2) add -Pjava-1.n to the Maven command line >=20 > 3) Add the definition of JAVA_1_N_HOME to the job: >=20 > Build Environment > Inject environment variables to the build process > Properties Content: JAVA_1_N_HOME=3D/home/jenkins/tools/java/latest1.N/ >=20 > The path in the above line is taken from: >=20 > = https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix >=20 > This is the approach used in Commons Validator, Net, Pool (and now = CLI) Thank you for fixing this for CLI (which I=E2=80=99m currently working = on). >=20 > As an alternative, the JAVA_1_N_HOME variable can be defined in terms > of one of the 'Tool Environment' variables. e.g. >=20 > JAVA_1_5_HOME=3D${JDK_1_5_LATEST__HOME} >=20 > This avoids having to use the actual path name. >=20 > Unfortunately there don't seem to be any Java settings that apply to > all nodes; the Windows paths and names are different from the Ubuntu > ones. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org