#Issue with JRE System Library version in Eclipse IDE

1 messages · Page 1 of 1 (latest)

dreamy tree
#

I had java 8 installed and everything was fine. Recently I upgraded to java 21 .
In Eclipse, after selecting the relevant jdk version (i.e jdk 21) for the JRE system library & java compiler, whenever I hit "Maven Update" it changes back to Java version 1.8.

I got a workaround by using these tags:

<maven.compiler.target>21</maven.compiler.target>```
inside `<properties></properties>` tag in pom.xml

The workaround is alright. All I want to know is if I can somehow resolve the issue with the IDE without using these tags?
frail lynxBOT
#

<@&987246554085740594> please have a look, thanks.

glacial vigil
#

You should use maven.compiler.release.

dreamy tree
dreamy tree