I was working on a maven project in intellij-idea and for some reason decided to change my java language level to 15 from 8 and now it does not recognise the jakarta package that I imported.
I tried using local history to revert the code but it doesn't work either. I tried adding a dependency in pom.xml but the jakarta version is wrong. I don't know how to get the right version as the dependency wasn't there before. What do I do?