Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 91660 invoked from network); 7 Jul 2006 10:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 10:39:42 -0000 Received: (qmail 40463 invoked by uid 500); 7 Jul 2006 10:39:35 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 40299 invoked by uid 500); 7 Jul 2006 10:39:35 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 40205 invoked by uid 99); 7 Jul 2006 10:39:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 03:39:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of nicolas.deloof@capgemini.com designates 194.3.247.82 as permitted sender) Received: from [194.3.247.82] (HELO mxepar01.capgemini.com) (194.3.247.82) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 03:39:34 -0700 Received: from mxipar01.capgemini.com (prvmta2 [194.3.224.82]) by mxepar01.capgemini.com (8.13.6/8.13.6) with ESMTP id k67Ad9DE006980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 7 Jul 2006 12:39:09 +0200 (MEST) Received: from prvmta2.capgemini.com (localhost [127.0.0.1]) by mxipar01.capgemini.com (8.13.6/8.13.6) with ESMTP id k67Ad9JR010609 for ; Fri, 7 Jul 2006 12:39:09 +0200 (MEST) Received: from pasteur2.capgemini.fr (smtp.capgemini.fr [10.67.1.90]) by prvmta2.capgemini.com (8.13.6/8.13.6) with ESMTP id k67Ad9Cl010604 for ; Fri, 7 Jul 2006 12:39:09 +0200 (MEST) Received: from pasteur.capgemini.fr (localhost [127.0.0.1]) by pasteur2.capgemini.fr (8.12.10/8.12.10) with ESMTP id k67Ad9Yb006193 for ; Fri, 7 Jul 2006 12:39:09 +0200 (MEST) Received: from [10.67.188.66] ([10.67.188.66]) by pasteur.capgemini.fr (8.12.10/8.12.10) with ESMTP id k67Ad9Uq006189 for ; Fri, 7 Jul 2006 12:39:09 +0200 (MEST) Message-ID: <44AE39CC.2050205@capgemini.fr> Date: Fri, 07 Jul 2006 12:39:08 +0200 From: Nicolas De Loof User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Maven Developers List Subject: Re: compiler plugin "how to use" References: <44AB6B4F.9000106@capgemini.fr> <44AE0103.7090400@apache.org> <44AE2E53.8050106@capgemini.fr> <44AE3787.40806@capgemini.fr> <44AE383B.2050004@apache.org> In-Reply-To: <44AE383B.2050004@apache.org> Content-Type: multipart/mixed; boundary="------------000205080803030105040504" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------000205080803030105040504 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit OK, this apt file is not in synch with current public maven site, so searching "You can use any JDK to compile" had no result. Here is my patch Brett Porter a �crit : > maven-compiler-plugin/src/site/apt/examples/compile_using_different_jdk.apt > > > On 7/07/2006 8:29 PM, Nicolas De Loof wrote: >> >> Looking in maven-compiler-plugin I don't find the howto document. >> Did I miss something ? >> >> Nicolas De Loof a �crit : >>> >>> I'll checkout maven-compiler-plugin from SVN and prepare a doc patch. >>> >>> Brett Porter a �crit : >>>> This is a good alternative. I think it should be added to the >>>> documentation (both approaches should be documented). >>>> >>>> Can you provide a patch? >>>> >>>> Thanks, >>>> Brett >>>> >>>> On 5/07/2006 5:33 PM, Nicolas De Loof wrote: >>>>> >>>>> I've read on >>>>> http://maven.apache.org/plugins/maven-compiler-plugin/howto.html >>>>> the "official" way to compile a Java1.3 application. >>>>> >>>>> I think this solution isn't the best/easier as this requires the >>>>> target environment to have the expected JDK installed and the >>>>> correct properties set, with no standard naming for it. >>>>> I myself get troubles with it as I can run JDK1.3 on my nightly >>>>> build server (Linux Ubuntu : requires some "stdlibc++libc6....") >>>>> >>>>> I'm using an alternative solution that has less expectation on the >>>>> compilation environment : >>>>> - Add a dependency to target runtime in the compiler plugin >>>>> configuration >>>>> - Set the compiler bootclasspaht to use it >>>>> >>>>> >>>>> org.apache.maven.plugins >>>>> maven-compiler-plugin >>>>> >>>>> 1.3 >>>>> 1.3 >>>>> >>>>> >>>>> >>>>> ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> com.sun >>>>> rt >>>>> 1.3.1_08 >>>>> >>>>> >>>>> >>>>> >>>>> This solution only requires the to install first the expected >>>>> rt.jar in repo, as any others java API jars (com.sun:rt POM is in >>>>> maven2 repo). >>>>> >>>>> Don't you think this solution may be promoted on compiler plugin >>>>> documentation ? >>>>> >>>>> Niso. >>>>> >>>>> This message contains information that may be privileged or >>>>> confidential and is the property of the Capgemini Group. It is >>>>> intended only for the person to whom it is addressed. If you are >>>>> not the intended recipient, you are not authorized to read, >>>>> print, retain, copy, disseminate, distribute, or use this message >>>>> or any part thereof. If you receive this message in error, please >>>>> notify the sender immediately and delete all copies of this message. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >>>>> For additional commands, e-mail: dev-help@maven.apache.org >>>>> >>>> >>>> >>> >>> This message contains information that may be privileged or >>> confidential and is the property of the Capgemini Group. It is >>> intended only for the person to whom it is addressed. If you are not >>> the intended recipient, you are not authorized to read, print, >>> retain, copy, disseminate, distribute, or use this message or any >>> part thereof. If you receive this message in error, please notify >>> the sender immediately and delete all copies of this message. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >>> For additional commands, e-mail: dev-help@maven.apache.org >>> >> >> This message contains information that may be privileged or >> confidential and is the property of the Capgemini Group. It is >> intended only for the person to whom it is addressed. If you are not >> the intended recipient, you are not authorized to read, print, >> retain, copy, disseminate, distribute, or use this message or any >> part thereof. If you receive this message in error, please notify >> the sender immediately and delete all copies of this message. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org >> For additional commands, e-mail: dev-help@maven.apache.org >> > > This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------000205080803030105040504 Content-Type: text/plain; name="compile_using_different_jdk.pacth" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="compile_using_different_jdk.pacth" Index: compile_using_different_jdk.apt =================================================================== --- compile_using_different_jdk.apt (revision 419851) +++ compile_using_different_jdk.apt (working copy) @@ -33,4 +33,32 @@ [...] -+------- \ No newline at end of file ++------- + + + An alternative is to install the rt.jar from your target JRE in your local repo using + standardized maven groupId "com.sun", and configure the compiler plugin to use it + as bootclasspath for javac using <<>> : + ++------- + + org.apache.maven.plugins + maven-compiler-plugin + + 1.3 + 1.3 + + + ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar + + + + + + com.sun + rt + 1.3.1_08 + + + ++------- --------------000205080803030105040504 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org --------------000205080803030105040504--