I am working on a project currently running with jdk 1.6. We recently upgraded to maven 3.3 (which will only run on jdk 1.7 or later), so the compiler configuration was removed from the main pom.xml and we are using toolchain (located in MAVEN_HOME/conf/toolchain.xml)
This works well on builds with maven. However, in IntelliJ, even though the project structure is configured to use jdk 1.6 and project language level 6 (@Overrides in interfaces), all modules in the project gets language level 5.0 ('enum' keywords, generics, autoboxing, etc. )
On compiler errors in the idea, (using @Overrides on inplementations of interfaces) and pressing ALT + Enter to enable for fixup, IntelliJ inserts the compiler configuration in the pom once more...
How can I get IntelliJ to read the tool chaining used by maven without extra configuration in pom.xml. ...or how can change language level for all my modules in a project without having to open every single one in the project structure (I have over 100 modules...)
I am using the ultimate edition version 2016.2.2.