Author: allee8285
Date: Tue Feb 14 15:37:52 2012
New Revision: 1244001
URL: http://svn.apache.org/viewvc?rev=1244001&view=rev
Log:
OPENJPA-2130 - Introduce properties (<compile.class.source>,
</compile.class.target>,<compile.testclass.source> and
<compile.testclass.target>) allowing user to specify source and target class
versions for code and test.
Modified:
openjpa/trunk/pom.xml
Modified: openjpa/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=1244001&r1=1244000&r2=1244001&view=diff
==============================================================================
--- openjpa/trunk/pom.xml (original)
+++ openjpa/trunk/pom.xml Tue Feb 14 15:37:52 2012
@@ -77,6 +77,11 @@
<postgresql.version>8.4-701.jdbc3</postgresql.version>
<!-- other common versions -->
<slf4jVersion>1.6.1</slf4jVersion>
+ <!-- Compile Java source/target class level -->
+ <compile.class.source>1.6</compile.class.source>
+ <compile.class.target>1.6</compile.class.target>
+ <compile.testclass.source>1.6</compile.testclass.source>
+ <compile.testclass.target>1.6</compile.testclass.target>
</properties>
<licenses>
@@ -614,8 +619,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
- <source>1.6</source>
- <target>1.6</target>
+ <source>${compile.class.source}</source>
+ <target>${compile.class.target}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
@@ -1046,6 +1051,19 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>test-source-compile</id>
+ <phase>process-test-sources</phase>
+ <goals>
+ <goal>testCompile</goal>
+ </goals>
+ <configuration>
+ <source>${compile.testclass.source}</source>
+ <target>${compile.testclass.target}</target>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>