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?