I tried using a multi-catch statement in my Java Project. It doesn't give any errors in the IDE, but when I do Run As->Maven Install
I get the following error (removed personal file paths as those are not relevant I think):
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project: Compilation failure
MyClass.java:[137,39] multi-catch statement is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable multi-catch statement)
As per the other answers on this site, I tried changing the Java version in my project properties. However, everything was already set to Java 1.7. My Java Build Path
My Java Compiler settings:
What should I change to be able to use Java 1.7 properly?