Return-Path: X-Original-To: apmail-builds-archive@minotaur.apache.org Delivered-To: apmail-builds-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51FC817497 for ; Fri, 9 Jan 2015 01:37:40 +0000 (UTC) Received: (qmail 72842 invoked by uid 500); 9 Jan 2015 01:37:41 -0000 Delivered-To: apmail-builds-archive@apache.org Received: (qmail 72776 invoked by uid 500); 9 Jan 2015 01:37:41 -0000 Mailing-List: contact builds-help@apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: builds@apache.org Delivered-To: mailing list builds@apache.org Received: (qmail 72763 invoked by uid 99); 9 Jan 2015 01:37:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 01:37:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.220.177 as permitted sender) Received: from [209.85.220.177] (HELO mail-vc0-f177.google.com) (209.85.220.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 01:37:35 +0000 Received: by mail-vc0-f177.google.com with SMTP id ij19so2349408vcb.8 for ; Thu, 08 Jan 2015 17:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=5xfkA2Zb5NbbQZw19is/JGz/uJVywlpfRL8EgFMaN0w=; b=lF7lZ1I+mdU5bgsMlAezZoreh7ILq41oz7Jm2V+PsU+Nj7C19L5bvTxifdmNY5wKzv JVs+Dy66AP/Sgr+MTvAZhSHypHSeMZ6j0dkWC6oDtJpUYXK3HKreSk+bamitPGYgL3et vw8KhqDqihoa+a+crt1TwHOaWU55vMQuBNL/DvqwDOZ5PNhziTPbK82czaWDlq7n0tFc hF8tKOzAX99fn+sDETXWtrqvl6gnXRcX4f+y+Wi4xq2QjNDSG8Mre3PaHb5K0Ks1BZrJ XSAEIH/L0Amc6hxA5u5JYFE4Xmcad0wtS1txousgpV4che/gxACcCSm7CSTBAh01kalH fNCw== MIME-Version: 1.0 X-Received: by 10.220.146.145 with SMTP id h17mr8938929vcv.53.1420767299901; Thu, 08 Jan 2015 17:34:59 -0800 (PST) Received: by 10.52.36.174 with HTTP; Thu, 8 Jan 2015 17:34:59 -0800 (PST) In-Reply-To: References: <291036041.1424390.1420715342864.JavaMail.open-xchange@patina.store> Date: Fri, 9 Jan 2015 01:34:59 +0000 Message-ID: Subject: Re: Jenkins: what Java versions are available for building with Maven? From: sebb To: builds@apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 9 January 2015 at 00:32, Andrew Bayer wrote: > The only way they'd ever move is if /home/jenkins became something else - > in which case we'd have to rebuild all the packages to use the new path > anyway. I'd say the odds of the paths ever changing from this point onwar= d > is slim to nil. > > I'll consider the settings.xml stuff, but I'd like to keep settings.xml a= s > simple as we can when there are other viable options - i.e., you can use > the Jenkins ToolEnv plugin to choose one of the Javas Jenkins knows about > and have its location exported into your build environment. I see. Easy enough to use in shell scripts. Also possible to use for Maven. For example: [enable JDK_1_5_LATEST__HOME] mvn compile -Pjava-1.5 -DJAVA_1_5_HOME=3D$JDK_1_5_LATEST__HOME Thanks for the info. > A. > > On Thu, Jan 8, 2015 at 4:15 PM, sebb wrote: > >> On 8 January 2015 at 19:10, Andrew Bayer wrote: >> > Yeah, we're moving to installing via puppet all the legacy JDKs etc in >> > /home/jenkins/tools from packages, so there is good reason to assume >> > they'll always be there. =3D) >> >> That's good news. >> Will they always be at the same path? >> >> If not (or even if so) would it be possible to define properties in >> Maven host-global settings.xml that point to the home directories? >> >> Commons Parent uses the convention that >> >> JAVA_1_5_HOME >> >> points to the home directory of Java 1.5 >> >> similarly for other Java versions. >> >> These are then used in profiles - e.g. java-1.5 - which override the >> java compiler and runtime for compilation and testing. >> The variables are also excluded from OSGI builds. >> To avoid cluttering the name-space, the variable is only defined if >> the profile is selected. >> >> For example: >> >> >> java-1.5 >> >> ${env.JAVA150_HOME} >> >> >> >> java-1.6 >> >> ${env.JAVA160_HOME} >> >> >> >> The above assumes that the relevant environment variables have been >> set, however that is not necessary; the paths can be listed directly, >> for example: >> >> /home/jenkins/tools/java/latest1.5 >> >> Would this be possible? >> >> > A. >> > >> > On Thu, Jan 8, 2015 at 3:20 AM, sebb wrote: >> > >> >> On 8 January 2015 at 11:09, Andreas Lehmk=C3=BChler >> wrote: >> >> > Hi, >> >> > >> >> >> sebb hat am 8. Januar 2015 um 11:05 geschrieben= : >> >> >> >> >> >> >> >> >> I have been trying to test Commons Math build on Jenkins. >> >> >> >> >> >> It runs fine if I choose Java 1.6 latest, however Math currently >> >> targets 1.5. >> >> >> >> >> >> If I try building using Java 1.5, Jenkins complains about class fi= le >> >> >> incompatibility. >> >> >> >> >> >> So it looks like Jenkins needs a minimum of Java 1.6. >> >> >> Is that correct? >> >> > I guess the issue is maven, newer versions (> 3.0.3 I'm not sure ab= out >> >> the >> >> > excact version) somehow need a minimum of Java 1.6. >> >> > >> >> >> >> Thanks! >> >> >> >> I've looked again at the stack trace, and you're correct - it's Maven >> >> that is complaining. >> >> >> >> Meanwhile I've found a way round the issue for Commons projects: >> >> >> >> -Pjava-1.5 -DJAVA_1_5_HOME=3D/home/jenkins/tools/java/latest1.5 >> >> >> >> [The java-1.5 profile sets the java version for compile and test >> >> assuming that JAVA_1_5_HOME is set appropriatel] >> >> >> >> So long as 1.5 is always at that location we should be good. >> >> >> >> > >> >> > BR >> >> > Andreas Lehmk=C3=BChler >> >> >>