Whenever I open a Java project by opening the pom file as a project, it doesn't automatically load the jdk for the project workspace. It shows me a message at the top that says "Module JDK is not defined" with a button "Setup SDK". I then manually select the JDK distribution and move along.
Is there a way I can eliminate this manual step and have IntelliJ somehow read which JDK it should use from the pom file?
I'm using IntelliJ IDEA 2022.2.3