maven - Intellij: How to set project configuration to java 1.8 -
i've got problem build project in intellij because of theoretically wrong java version:
in reality project settings set correctly:
java 1.8 set default jdk operating system. unfortunatelly, when try o make project, following error:
do have idea should change configuration in order successfuly build project?
update after specyfying properties in pom.xml file:
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target>
project builds correcly. strangely, when removed properies (so went initial state) , tried build project again, worked fine. still, intellij indcates,that line causes error presented on first picture. know why? in editor -> inspection section i've got selected option respect project language level settings, according project configuration, should right (but not):
i found answer! actuallyi don't understand, why default version of java compiler set version 1.5 ... hope find helpful
Comments
Post a Comment