configure JRE that is different from compiler target level

This commit is contained in:
Martin Lippert
2015-08-19 17:00:38 +01:00
committed by Dave Syer
parent 7c0c953f81
commit 678f36cfef
6 changed files with 93 additions and 0 deletions
+16
View File
@@ -74,4 +74,20 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- specify the JRE level that is used on the classpath for compilation, to allow smooth import into Eclipse/STS IDE -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<java.classpath.jre>1.7</java.classpath.jre>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>