Problem description:
java: warning: source release 17 requires target release 17
Solution:
Change the Project bytecode version: 17 under Settings --> Build, Execution, Deployment --> Complier --> Java Complier configuration to be the same as the JDK version used by the project.
Next we have another step to modify the java compiled version of the pom file
This problem is solved.