stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)

前端 未结 9 1143
悲&欢浪女
悲&欢浪女 2020-11-28 01:59

Using IntelliJ 12, I have a java project and I use maven with a pom.xml. My project is using java8, but it seems the default project language level has been set to 6 while i

9条回答
  •  被撕碎了的回忆
    2020-11-28 02:28

    There was one additional step I had to follow, in addition to setting the maven build properties, adding the maven-compiler-plugin, and modifying the Java version in the .iml file. (each documented already in the other answers). You also have to set the compiler version in the settings.

提交回复
热议问题