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 5282BD77F for ; Fri, 16 Nov 2012 15:42:42 +0000 (UTC) Received: (qmail 9957 invoked by uid 500); 16 Nov 2012 15:42:40 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 9869 invoked by uid 500); 16 Nov 2012 15:42:40 -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 9846 invoked by uid 99); 16 Nov 2012 15:42:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 15:42:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.183.49.139] (HELO production.artifact-software.com) (207.183.49.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 15:42:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by production.artifact-software.com (Postfix) with ESMTP id A28C1FEC04A for ; Fri, 16 Nov 2012 10:42:14 -0500 (EST) X-Virus-Scanned: amavisd-new at artifact-software.com Received: from production.artifact-software.com ([127.0.0.1]) by localhost (smtp.artifact-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xYjBjVl0rghi for ; Fri, 16 Nov 2012 10:42:07 -0500 (EST) Received: from [192.168.3.170] (unknown [192.168.3.170]) by production.artifact-software.com (Postfix) with ESMTP id 5AEC3FEC049 for ; Fri, 16 Nov 2012 10:42:07 -0500 (EST) Message-ID: <50A65ECE.6040804@artifact-software.com> Date: Fri, 16 Nov 2012 10:42:06 -0500 From: Ron Wheeler Reply-To: rwheeler@artifact-software.com Organization: Artifact Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: Why does mvn compiile using java 1.3? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org What IDE are you using. If your colleagues are using the same pom, you need to look at your IDE setup. For example, Eclipse will let you select any of the available compilers. Ron On 16/11/2012 8:21 AM, John Patrick wrote: > Jasper, > > I also experience similar issues, it comes down to what version of > java you have installed, what version of the plugin you use and what > their respective defaults are. To avoid this I would explicitly state > version's of plugins and also a few other useful properties. I always > but at the least the following in every new project pom; > > [...] > > [...] > > [...] > > [...] > > org.apache.maven.plugins > maven-compiler-plugin > 2.5.1 > > [...] > > [...] > > [...] > > [...] > > [...] > UTF-8 > 1.6 > ${project.custom.java.version} > ${project.custom.java.version} > ${project.custom.encoding} > ${project.custom.encoding} > ${project.custom.encoding} > [...] > > > > John > > On 16 November 2012 09:50, Olivier Lamy wrote: >> Hi, >> Which maven-compiler-plugin version are you using ? >> Does your colleague set JAVA_HOME env var on windows ? >> >> 2012/11/16 Jasper Floor : >>> Hi, >>> >>> For some reason mvn is compiling using java 1.3. I do not understand this >>> behavior. I have never seen this before and it doesn't do this on my >>> colleagues machine with the same project. The big difference is he is a >>> windows use and I am a linux user. >>> >>> Apache Maven 3.0.4 >>> Maven home: /usr/share/maven >>> Java version: 1.6.0_33, vendor: Sun Microsystems Inc. >>> Java home: /opt/jdk/jdk1.6.0_33/jre >>> Default locale: en_US, platform encoding: UTF-8 >>> OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family: "unix" >>> >>> Its a Mint distro, but with my own java installed as I required the 1.6 >>> jdk. >>> >>> >>> mvg, >>> Jasper >> >> >> -- >> Olivier Lamy >> Talend: http://coders.talend.com >> http://twitter.com/olamy | http://linkedin.com/in/olamy >> >> --------------------------------------------------------------------- >> 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 > > -- Ron Wheeler President Artifact Software Inc email: rwheeler@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org