You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by de...@apache.org on 2012/09/23 19:12:17 UTC
svn commit: r1389097 - /creadur/rat/trunk/pom.xml
Author: dennisl
Date: Sun Sep 23 17:12:16 2012
New Revision: 1389097
URL: http://svn.apache.org/viewvc?rev=1389097&view=rev
Log:
Extract the Java version into a property.
Tell Maven PMD Plugin to use the correct Java version.
Modified:
creadur/rat/trunk/pom.xml
Modified: creadur/rat/trunk/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/pom.xml?rev=1389097&r1=1389096&r2=1389097&view=diff
==============================================================================
--- creadur/rat/trunk/pom.xml (original)
+++ creadur/rat/trunk/pom.xml Sun Sep 23 17:12:16 2012
@@ -48,6 +48,7 @@ agnostic home for software distribution
</prerequisites>
<properties>
+ <javaVersion>1.5</javaVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
These properties are to allow deployment to another target than
@@ -186,6 +187,9 @@ agnostic home for software distribution
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.4</version>
+ <configuration>
+ <targetJdk>${javaVersion}</targetJdk>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -233,12 +237,20 @@ agnostic home for software distribution
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>${javaVersion}</source>
+ <target>${javaVersion}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <targetJdk>${javaVersion}</targetJdk>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.1</version>