You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/03/27 22:41:31 UTC

svn commit: r1582484 - /maven/pom/trunk/asf/pom.xml

Author: hboutemy
Date: Thu Mar 27 21:41:30 2014
New Revision: 1582484

URL: http://svn.apache.org/r1582484
Log:
[MPOM-44] use maven.compiler.source/target standard properties to define compiler version instead of direct plugin configuration: this will permit override in child poms through these properties too

Modified:
    maven/pom/trunk/asf/pom.xml

Modified: maven/pom/trunk/asf/pom.xml
URL: http://svn.apache.org/viewvc/maven/pom/trunk/asf/pom.xml?rev=1582484&r1=1582483&r2=1582484&view=diff
==============================================================================
--- maven/pom/trunk/asf/pom.xml (original)
+++ maven/pom/trunk/asf/pom.xml Thu Mar 27 21:41:30 2014
@@ -91,6 +91,9 @@ under the License.
     <sourceReleaseAssemblyDescriptor>source-release</sourceReleaseAssemblyDescriptor>
     <gpg.useagent>true</gpg.useagent>
     <arguments />
+    <!-- Specify the default ccompiler source/target as 1.4 for backwards compatibility -->
+    <maven.compiler.source>1.4</maven.compiler.source>
+    <maven.compiler.target>1.4</maven.compiler.target>    
   </properties>
 
   <repositories>
@@ -127,10 +130,6 @@ under the License.
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.1</version>
-          <configuration>
-            <source>1.4</source>
-            <target>1.4</target>
-          </configuration>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>