[UIMA-6463] Use toolchains to ensure compatibility with Java 1.8
- Add toolchain plugin
diff --git a/ruta-parent/pom.xml b/ruta-parent/pom.xml
index 5bb8485..8c0fb2b 100644
--- a/ruta-parent/pom.xml
+++ b/ruta-parent/pom.xml
@@ -277,6 +277,24 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>toolchain</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <toolchains>
+ <jdk>
+ <version>${maven.compiler.target}</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>