Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java 20, JRE System Library, Maven(Updating Maven project reverts Runtime to JavaSE-19)
Java 20, JRE System Library, Maven [message #1859129] Sun, 14 May 2023 00:56 Go to next message
Tom Kratzke is currently offline Tom KratzkeFriend
Messages: 4
Registered: June 2011
Junior Member
I'm using Java 20 with Maven, and my JRE Runtime Library keeps reverting to JavaSE-19.

I am using Eclipse Version: 2023-03 (4.27.0), Build id: 20230309-1520, and:
Eclipse JDT (Java Development Tools) Source Patch with Java 20 support for 2023-03 development stream 1.2.300.v20230322-1359_BETA_JAVA20.

Java 20 is the only Jdk or Java that I have installed, JAVA_HOME is set to the jdk-20 directory, compliance is set to 20, and I have edited the build path's runtime library to use the execution environment, which I have set to JavaSE-20.

But when I update the Maven project, the runtime library reverts to JavaSE-19.

A little more detail: I'm using Maven from within Eclipse, and I started the Maven project with apache's maven-archetype-quickstart. I added the line <maven.compiler.release>20</maven.compiler.release>
into my properties section within my pom.xml, did a "Maven-Update Project" and JavaSE-19 shows up as my runtime library.

Am I missing something?
Re: Java 20, JRE System Library, Maven [message #1859130 is a reply to message #1859129] Sun, 14 May 2023 03:20 Go to previous messageGo to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 143
Registered: October 2018
Senior Member
Hi,

There was a bug, see:
https://github.com/eclipse-m2e/m2e-core/issues/1326

The remedy at the moment is to use:
Java 20 support now available from:
https://download.eclipse.org/technology/m2e/snapshots/latest/
I use it once to fix the problem, and it is ok now.

index.php/fa/43185/0/

I assume that next eclipse release will include the fix.

I hope this will help.
Re: Java 20, JRE System Library, Maven [message #1859131 is a reply to message #1859130] Sun, 14 May 2023 03:38 Go to previous messageGo to next message
Tom Kratzke is currently offline Tom KratzkeFriend
Messages: 4
Registered: June 2011
Junior Member
Wow! That was fast! Thank you very much!
Thomas
Re: Java 20, JRE System Library, Maven [message #1859133 is a reply to message #1859131] Sun, 14 May 2023 03:49 Go to previous message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 143
Registered: October 2018
Senior Member
It was part of the morning coffee...
Regards.
Previous Topic:JUnit View shows no results -- neither success nor failure
Next Topic:Eclipse crashes when COPY/PASTING
Goto Forum:
  


Current Time: Fri Apr 26 08:59:20 GMT 2024

Powered by FUDForum. Page generated in 0.02997 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top