Failed to execute goal org apache maven plugins maven-compiler-plugin 3.10.1

Viewed 24

I'm trying to deploy a Spring Boot project on heroku server, but I come across this error below. I think the problem is in the .pom.xml file I don't know where the problem is to fix. I accept suggestions

Failed log termination

[INFO] Compiling 18 source files to /tmp/build_26efd201/target/classes
       [INFO] ------------------------------------------------------------------------
       [INFO] BUILD FAILURE
       [INFO] ------------------------------------------------------------------------
       [INFO] Total time:  8.534 s
       [INFO] Finished at: 2022-09-18T23:12:49Z
       [INFO] ------------------------------------------------------------------------
       [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project demo: Fatal error compiling: invalid target release: 17 -> [Help 1]
       [ERROR] 
       [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
       [ERROR] Re-run Maven using the -X switch to enable full debug logging.
       [ERROR] 
       [ERROR] For more information about the errors and possible solutions, please read the following articles:
       [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 !     ERROR: Failed to build app with Maven
       We're sorry this build is failing! If you can't find the issue in application code,
       please submit a ticket so we can help: https://help.heroku.com/
 !     Push rejected, failed to compile Java app.
 !     Push failed

File pom.xml

https://ideone.com/9jiloS

0 Answers
Related