I'm working on a simple Java project and trying to use IntelliJ 14 for the first time; I have the Ultimate version through an education license (in my last year of undergrad!). I'm not super familiar with either Maven or IntelliJ. I want to use Java 8, and in fact I'm pretty sure this is the only version of the JDK I have installed on my computer. However, whenever I compile my project, I get a couple warnings and an info message:
Information: Using javac 1.8.0_51 to compile java sources
Warning: java: source value 1.5 is obsolete and will be removed in a future release
Warning: java: target value 1.5 is obsolete and will be removed in a future release
So what I've noticed is that under IntelliJ IDEA > Preferences... > Build, Execution, Deployment > Compiler > Java Compiler, the target bytecode version is set to 1.5
. I can change it to 1.8
, but when I quit IntelliJ and re-open the project, it is reset to 1.5
. The project bytecode version is blank for SDK default.
Here's what I've already done:
included the following in my maven pom
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>
Changed the IntelliJ preference file as noted here on the IntelliJ website.
Set the global, project, and module SDK as noted here on the IntelliJ website.
Am I missing a setting somewhere? What do I have to do to keep this value from changing every time I re-open IntelliJ?