Update: see the self-answer. The issue seems to be with Maven import or some sort of corruption of a module's settings after the import.
I have a very large multi-module Maven IntelliJ project with 3 separate roots.
I am building the whole project in preparation to commit.
I am getting the following error from IntelliJ 2017.2.3 Ultimate:
Information:Eclipse compiler 4.6.2 was used to compile java sources
...
Error:java: Target level '1.5' is incompatible with source level '1.8'. A target level '1.8' or better is required
None of the code is supposed to compile with Java 5, it's all Java 8.
The project is configured with JDK 1.8 Maven's maven-compiler-plugin is already configured to use version 1.8 of Java as explained here.
2 questions:
- What causes this? Is it a known bug with IntelliJ?
- How do I find out which module of the 100 or so modules in the project is the one causing the issue?