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 441A8DC25 for ; Fri, 16 Nov 2012 13:21:33 +0000 (UTC) Received: (qmail 63158 invoked by uid 500); 16 Nov 2012 13:21:31 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 62901 invoked by uid 500); 16 Nov 2012 13:21:26 -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 62874 invoked by uid 99); 16 Nov 2012 13:21:25 -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 13:21:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nhoj.patrick@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vc0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 13:21:21 +0000 Received: by mail-vc0-f171.google.com with SMTP id m18so3691465vcm.30 for ; Fri, 16 Nov 2012 05:21: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; bh=cy1BKJBqJomfmkS9l8Nq6pU5sEkPxFeNqmYcgSgMP8I=; b=k/uIhJnKJBBHoVBzTuzB4VO9loJ019K4D0R50s8D5ifD9AajWgKe58zZ/ybrquZt0Y cyqUBtXoAfJj9Q06zMKVZSAPqYbn0t1K/XtJ+Zfv4SAuVWhwnXDU7nyLjdva72tgJcZz O6A2rsIGMrOAoTN/hwA3UPAKNHrUS1GJUq7PwRl2Erg21y41cVRapBP5AUX4dwZrIgvW R4zYNH5FFcwc6G1AJu882a14r75y4tw/pU1s7P7YT1yxDhoxNeh7GniRK6r9HKdYQ4Fn 69USp8srzsf/694u5SobLQcoqMNS0M3hZ/zqzdqYPjLRbg58cDhFAGvB+VlWzfkA8PJZ vkJw== MIME-Version: 1.0 Received: by 10.52.175.225 with SMTP id cd1mr5542004vdc.130.1353072060623; Fri, 16 Nov 2012 05:21:00 -0800 (PST) Received: by 10.59.10.3 with HTTP; Fri, 16 Nov 2012 05:21:00 -0800 (PST) In-Reply-To: References: Date: Fri, 16 Nov 2012 13:21:00 +0000 Message-ID: Subject: Re: Why does mvn compiile using java 1.3? From: John Patrick To: Maven Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 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