1Add this to your pom.xml you can set to whatever java version you want in
2this example I used Java 14 as an example.
3
4<properties>
5 <maven.compiler.source>14</maven.compiler.source>
6 <maven.compiler.target>14</maven.compiler.target>
7</properties>
8
9