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 66ED6C405 for ; Tue, 25 Jun 2013 06:00:19 +0000 (UTC) Received: (qmail 48307 invoked by uid 500); 25 Jun 2013 06:00:16 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 48181 invoked by uid 500); 25 Jun 2013 06:00:08 -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 48161 invoked by uid 99); 25 Jun 2013 06:00:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 06:00:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of 06virg@gmail.com designates 209.85.220.51 as permitted sender) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 05:59:55 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf11so12088815pab.38 for ; Mon, 24 Jun 2013 22:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=t6NONvYmvgw/zXeXfqPnnJvJ3ngLZPys5JOoUddTB84=; b=ubwjXoQEOqCmSdBwVEdGUsJLspz10z7yjcPeMfLoZ7/joavR7AeoS7ZgNT9K5p0dlt J2/p4vGBOk7TVUSCoccndXkOsM/li2D5y5xfWruMckpSinjQzmZ9m2eL5CcHQv4fesiq mPhh++y6Q+0NCLGq8si10KELKdFRchnG68HtSf8eQX6D7qCAZ2cLEt/AxUgjXFLdLUwA CXDM+lwVRyLkiJjQPtRUxhYV5H9wDW3mfQd8k6x7XnAfz1Gk9hfM6tjwVUM2sI4uzUyV i8u1tpj2vZDILqt1AK05rcKpaoC7KlI26Q6w51Tuy+K7P07aUT1cyXDknNGhkGJw5OLz KkSw== MIME-Version: 1.0 X-Received: by 10.68.217.7 with SMTP id ou7mr26259838pbc.8.1372139973952; Mon, 24 Jun 2013 22:59:33 -0700 (PDT) Received: by 10.68.102.229 with HTTP; Mon, 24 Jun 2013 22:59:33 -0700 (PDT) Date: Tue, 25 Jun 2013 11:29:33 +0530 Message-ID: Subject: Multiple JDK versions From: virg g <06virg@gmail.com> To: Maven Users List Content-Type: multipart/alternative; boundary=e89a8ff24319bacbc504dff43bd4 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff24319bacbc504dff43bd4 Content-Type: text/plain; charset=ISO-8859-1 Hi, I need build my project with multiple jdk versions 1.5 and 1.6. I am using maven compiler plugin to set the compiler based on JAVA_HOME set. Is it mandatory to set target either 1.5 or 1.6 based on the jdk version i want to build. Why because if i set compiler to jdk 1.6, in the debug log it shows that target is 1.5 but it should be 1.6 right? target should set automatically based on JAVA_HOME right unless i specically mention the target if i want to change? Any pointers for my problem? [DEBUG] (f) executable = D:/jdk1.6.0_14/bin/javac [DEBUG] (f) source = 1.5 [DEBUG] (f) staleMillis = 0 [DEBUG] (f) target = 1.5 Thanks virg --e89a8ff24319bacbc504dff43bd4--