uses pom property for source code version reference

pull/400/head
jackygurui 9 years ago
parent da08fb79f2
commit 4e5564bf5e

@ -55,6 +55,8 @@
<properties>
<maven.test.skip>true</maven.test.skip>
<source.version>1.6</source.version>
<test.source.version>1.8</test.source.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -281,7 +283,7 @@
<configuration>
<linkXref>true</linkXref>
<minimumTokens>100</minimumTokens>
<targetJdk>1.6</targetJdk>
<targetJdk>${source.version}</targetJdk>
<verbose>true</verbose>
</configuration>
</plugin>
@ -309,8 +311,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>${source.version}</source>
<target>${source.version}</target>
<optimize>true</optimize>
<showDeprecations>true</showDeprecations>
</configuration>
@ -323,10 +325,8 @@
</goals>
<configuration>
<fork>true</fork>
<source>1.8</source>
<target>1.8</target>
<optimize>true</optimize>
<showDeprecations>true</showDeprecations>
<source>${test.source.version}</source>
<target>${test.source.version}</target>
</configuration>
</execution>
</executions>

Loading…
Cancel
Save