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
@@ -303,4 +303,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.8</java.classpath.jre>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
+16
View File
@@ -573,4 +573,20 @@
<artifactId>snakeyaml</artifactId>
</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>
+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>
@@ -137,5 +137,20 @@
</configuration>
</plugin>
</plugins>
<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>
@@ -82,4 +82,20 @@
</build>
</profile>
</profiles>
<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>
+14
View File
@@ -266,5 +266,19 @@
</executions>
</plugin>
</plugins>
<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>