Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 71968 invoked from network); 11 Mar 2010 13:32:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 13:32:24 -0000 Received: (qmail 3781 invoked by uid 500); 11 Mar 2010 13:31:51 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 3567 invoked by uid 500); 11 Mar 2010 13:31:51 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 3560 invoked by uid 99); 11 Mar 2010 13:31:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 13:31:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 13:31:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EE25F2388A19; Thu, 11 Mar 2010 13:31:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r921843 - /commons/proper/commons-parent/trunk/pom.xml Date: Thu, 11 Mar 2010 13:31:26 -0000 To: commits@commons.apache.org From: niallp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100311133126.EE25F2388A19@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: niallp Date: Thu Mar 11 13:31:26 2010 New Revision: 921843 URL: http://svn.apache.org/viewvc?rev=921843&view=rev Log: Add profiles to compile and test with Java versions 1.3 1.4, 1.5 & 1.6 For example: mvn -Pjava-1.3 clean test mvn -Pjava-1.4 clean test mvn -Pjava-1.5 clean test mvn -Pjava-1.6 clean test In order to use these profiles the JAVA_1_3_HOME, JAVA_1_4_HOME, JAVA_1_5_HOME and JAVA_1_6_HOME properties need to be configured settings.xml to point to the java locations See http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html (N.B. Although Java 1.6 is the latest release, 1.7 is supposed to out later this year - so the java-1.6 profile is added with that in mind) Modified: commons/proper/commons-parent/trunk/pom.xml Modified: commons/proper/commons-parent/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=921843&r1=921842&r2=921843&view=diff ============================================================================== --- commons/proper/commons-parent/trunk/pom.xml (original) +++ commons/proper/commons-parent/trunk/pom.xml Thu Mar 11 13:31:26 2010 @@ -149,6 +149,9 @@ ${maven.compile.source} ${maven.compile.target} ${commons.encoding} + ${commons.compiler.fork} + ${commons.compiler.compilerVersion} + ${commons.compiler.javac} @@ -223,7 +226,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.5 + ${commons.surefire.version} @@ -249,6 +252,12 @@ maven-compiler-plugin + maven-surefire-plugin + + ${commons.surefire.java} + + + maven-jar-plugin @@ -381,7 +390,7 @@ org.apache.maven.plugins maven-surefire-report-plugin - 2.5 + ${commons.surefire.version} org.codehaus.mojo @@ -574,6 +583,63 @@ + + java-1.3 + + true + 1.3 + ${JAVA_1_3_HOME}/bin/javac + ${JAVA_1_3_HOME}/bin/java + 2.2 + + + + + + java-1.4 + + true + 1.4 + ${JAVA_1_4_HOME}/bin/javac + ${JAVA_1_4_HOME}/bin/java + + + + + + java-1.5 + + true + 1.5 + ${JAVA_1_5_HOME}/bin/javac + ${JAVA_1_5_HOME}/bin/java + + + + + + java-1.6 + + true + 1.6 + ${JAVA_1_6_HOME}/bin/javac + ${JAVA_1_6_HOME}/bin/java + + + + + false + + + + 2.5 + ${project.artifactId}-${commons.release.version}