Java source level changes each time maven reindexes

Answered

Ever since I upgraded to 2016.2.4 , the java source level is changed to 1.5 each time the maven project is reindexed. I constantly need to go changing this, even though the pom explicitly says that both source and target should be 1.8.

I event get a compile error saying "source release 1.8 requires target release 1.8" from time to time. This didn't happen before the update.

 

Any hints?

5 comments
Comment actions Permalink

As I said in the post, that is correctly defined in the pom. I just downgraded to 2016.1.4 and the problem dissapeared

0
Comment actions Permalink


This type of thing happens constantly on upgrade. I upgraded this morning, and I am now spending hours trying to figure out why a project that DID compile before the upgrade now says "Error:java: javacTask: source release 1.8 requires target release 1.8".

No code change at all. Just an 'up'grade. This has happened on so many versions of Intellij that I almost always refuse the upgrades. This mrning I was not paying enough attention.

This is incredibly frustrating and costs me enormous amounts of time. I would really appreciate it if there was SOME indication as to what project/file/setting/black magic was causing this to happen repeatedly.

0

Please sign in to leave a comment.