So I have my maven project configured to Java9
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.9</source> <target>1.9</target> <compilerVersion>1.9</compilerVersion> </configuration> </plugin> </plugins> </build> But if I check the project build path it still says JRE System Library [J2SE-1.5] in eclipse (instead of JavaSE-9), so it basically uses Java1.5 and gives me a lot of errors. If I manually correct that entry, everything is fine. But shouldn't Maven handle the complete classpath settings? The answer to this is probabbly quite simple, but I cant figure it out.
Thanks!
EDIT The fix was to remove compilerVersion and edit the source and target tags:
<configuration> <source>9</source> <target>9</target> </configuration> 