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 2FF0C10B3D for ; Tue, 26 Nov 2013 16:25:16 +0000 (UTC) Received: (qmail 33892 invoked by uid 500); 26 Nov 2013 16:25:07 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 33846 invoked by uid 500); 26 Nov 2013 16:25:06 -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 33837 invoked by uid 99); 26 Nov 2013 16:25:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 16:25:06 +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 [134.96.252.33] (HELO mail.uni-sb.de) (134.96.252.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 16:24:57 +0000 Received: from mail.cs.uni-saarland.de (mail.cs.uni-saarland.de [134.96.254.200]) by uni-sb.de (8.14.5/2011051800) with ESMTP id rAQGObZS024641 for ; Tue, 26 Nov 2013 17:24:37 +0100 (CET) Received: from mail-infsec.cs.uni-saarland.de (mail-infsec.cs.uni-saarland.de [134.96.225.250]) by mail.cs.uni-saarland.de (8.14.5/2011051800) with ESMTP id rAQGOaxU016721 for ; Tue, 26 Nov 2013 17:24:36 +0100 (CET) Received: from [134.96.225.192] (mbpc10.cs.uni-saarland.de [134.96.225.192]) by mail-infsec.cs.uni-saarland.de (Postfix) with ESMTPSA id 06C65200E2 for ; Tue, 26 Nov 2013 17:24:36 +0100 (CET) Message-ID: <5294CB4A.20903@cs.uni-saarland.de> Date: Tue, 26 Nov 2013 17:24:42 +0100 From: Malte Skoruppa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Maven Users List Subject: Re: Changing JDK version without specifying maven-compiler-plugin version References: <5294B73F.2020407@cs.uni-saarland.de> <5294C574.90906@cs.uni-saarland.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-wuwien-Metrics: mail.cs.uni-saarland.de 1290; Body=1 Fuz1=1 Fuz2=1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, > I read that as you wanting to only use features of Java 1.3 (madness I say) > which will break once you have Java 8 as its javac will only support down > to -source 1.6 IIRC (but it may be 1.5) > > I think it is current and two back that is the new policy that is being > introduced from Java 8 onwards... Ah, interesting. I didn't know that about the downwards compatibility of Java. Thanks for the clarification. And I would agree that it would be madness to only use features of Java 1.3. :-D Which is the very reason I took a closer look at how to configure a higher Java compiler version in the first place ;-) Best, Malte > > >> >> >> >>> (2) I do *not* want having to monitor the maven-compiler-plugin by myself >>>> all the time in order to check for updates and keep my pom.xml referring >>>> to >>>> the currently latest version; >>>> >>>> Incompatible goal. If you have a version of the compiler plugin that is >>> working. Leave it as is. If it isn't broken, don't fix it. If you decide >>> that it is broken (e.g. you think the version you have is not compiling >>> fast enough) then try upgrading... this way you have control over your >>> build >>> >> My question is precisely *why* this goal is incompatible. You see, I am >> allowed to not specify the maven-compiler-plugin version when I'm happy >> with the default Java version. But as soon as I decide that I want to use >> another Java version, I have to commit on a maven-compiler-plugin version. >> That is suprising, is it not? :) >> >> >> >>> (3) yet I do *not* want Maven complaining about my project.xml being >>>> malformed either. >>>> >>>> Specify the version, or live with Maven complaining. >>> The Maven way is to make doing "the right thing" easy... doing the "not so >>> right thing" should encounter some friction... but unless we have good >>> reason we should not prevent you from shooting your foot off... we can >>> make >>> it difficult to aim the gun at your foot though! >>> >> So what you're saying is that the maven-archetype-quickstart archetype >> does a "not so right thing" since it does not specify a >> maven-compiler-plugin version in its POM? >> >> >> Thanks, >> >> Malte >> >> >> >> --------------------------------------------------------------------- >> 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