Getting error about using a 17 runtime, but dependences require Java 21 #1963
Unanswered
davidmichaelkarr
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I think you need to provide something one can actually open in an IDE to see the error from the error it is almost impossible to guess what causing this. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have no idea whether this is a bug in m2e, I don't even know whether this is related to m2e, but I'm at a loss to explain why this is happening, and it seems to be related to m2e.
For background, I work on a number of Java 17 SpringBoot REST services that build with Maven. Our current version of our platform uses SpringBoot 3, although by default they use Jersey, not Spring MVC to implement the REST services. We've developed a new version that uses Spring MVC for the REST services.
All of the services using the existing released version using Jersey are working fine, both in mvn builds and in Eclipse. However, what I'm seeing is that any service using the new version, despite building fine with mvn, are getting errors like the following in Eclipse:
The versions of dependencies are mostly set in our parent pom and bom. For this particular instance of the error, I tried manually adding a dependency for jersey-common, version 3.1.6, and that only changed the message to refer to a different dependency. I have a feeling if I tried specifying an older version of that dependency, it would just present the error for a different dependency.
I've looked at the pom file for jersey-common:3.1.8, and it does have some code that checks for which version of Java is being used, but I have no idea why Eclipse/m2e says it "requires a 21 runtime".
I could use any clue you could provide that could point me to a solution to this.
Beta Was this translation helpful? Give feedback.
All reactions