Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 517AD904C for ; Tue, 8 May 2012 16:37:27 +0000 (UTC) Received: (qmail 69788 invoked by uid 500); 8 May 2012 16:37:25 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 69689 invoked by uid 500); 8 May 2012 16:37:25 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 69677 invoked by uid 99); 8 May 2012 16:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 16:37:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [157.83.125.26] (HELO email.barclays.com) (157.83.125.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 16:37:19 +0000 To: Date: Tue, 8 May 2012 12:36:01 -0400 Subject: RE: How to compile some modules with a specific JDK, the rest with default JDK Thread-Topic: How to compile some modules with a specific JDK, the rest with default JDK Thread-Index: Ac0tNSzoxa+5aqsYRZKNDFlHH7P8rgAA0JJA Message-ID: <34922D8098CB7048A99568D009AF262D085AF5430F@NYKPCMMGMB05.INTRANET.BARCAPINT.COM> References: <34922D8098CB7048A99568D009AF262D085AF5430E@NYKPCMMGMB05.INTRANET.BARCAPINT.COM> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 x-cibwm-mm: cibwm From: Works like a charm (tested with mvn -X), inside the pom: X org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.7 1.7 true true ${env.HOME}/myjdkdir/jdk1.7.0/bin/javac 1.7 .... -----Original Message----- From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On Behal= f Of Anders Hammar Sent: Tuesday, May 08, 2012 12:11 PM To: Maven Users List Subject: Re: How to compile some modules with a specific JDK, the rest with= default JDK Should be possible. Just configure this in that module, and not in the parent pom. /Anders On Tue, May 8, 2012 at 6:03 PM, wrote: > Hello Maven users, > > It is possible to tell maven to compile a specific module with a differen= t JDK than the rest of the project? > > So say than the master pom has this: > > . > |-- X > |-- Y > |-- Z > > Now Y and Z require the new JDK, while X can use the default (there is no= dependency between X, Y and Z). > > So far the documentation I found explains how to override the JDK for the= whole project: > > http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Differen= t+JDK+Versions > > Thanks in advance, > > --Jose > > _______________________________________________ > > This e-mail may contain information that is confidential, privileged or o= therwise protected from > disclosure. If you are not an intended recipient of this e-mail, do not d= uplicate or redistribute > it by any means. Please delete it and any attachments and notify the send= er that you have received > it in error. Unless specifically indicated, this e-mail is not an offer t= o buy or sell or a > solicitation to buy or sell any securities, investment products or other = financial product or > service, an official confirmation of any transaction, or an official stat= ement of Barclays. Any > views or opinions presented are solely those of the author and do not nec= essarily represent those > of Barclays. This e-mail is subject to terms available at the following l= ink: www.barcap.com/emaildisclaimer. > By messaging with Barclays you consent to the foregoing. =A0Barclays offe= rs premier investment banking > products and services to its clients through Barclays Bank PLC, a company= registered in England > (number 1026167) with its registered office at 1 Churchill Place, London,= E14 5HP. =A0This email may > relate to or be sent from other members of the Barclays Group. > > _______________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org