Hi everyone! I'm relatively new to Java. I have experience with C#, Go, and Python, and picked up Java for a course I'm taking. I'm using Maven to create projects in VS Code. I have JDK21 installed in my environment, but for some reason Maven always creates new projects with 1.7 as the compiler source and target version. I get a "Problem" reported by VS Code for this. I can go and change it to 21 in the pom.xml every time I create a project, but I'd like to have it done automatically. I tried creating a settings.xml, but either it doesn't work or I did it incorrectly.
Any tips on how I can set up VS Code so that when I create a new project with the Maven plugin, it will use 21 from the beginning?