Error when running git push heroku master on Heroku

I am a Java beginner.

When deploying a program created in Eclipse on Heroku I am in trouble because the error that occurred cannot be resolved.

The command when an error occurs is

git push heroku master

The content of the error is here.

remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] Total time:  8.308 s
remote:        [INFO] Finished at: 2020-12
remote:        [INFO] ------------------------------------------------------------------------
remote:        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)on project project name: Fatal error compiling: invalid flag: --release -> [Help 1]
remote:        [ERROR] 
remote:        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote:        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote:        [ERROR] 
remote:        [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote:        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
remote: 
remote:  !     ERROR: Failed to build app with Maven
remote:        We're sorry this build is failing! If you can't find the issue in application code,
remote:        please submit a ticket so we can help: https://help.heroku.com/
remote: 
remote:  !     Push rejected, failed to compile Java app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !Push rejected to created site URL name.
remote: 
To https://git.heroku.com/created site URL name.
 ![remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/created site URL name.'

Stumble on the first app release, Change the java version for about 3 days ,. In Google's translation, I thought that this sentence was the cause of the error and reviewed the Maven pom.xml file, but it did not solve the error.

Google Translate

Remote: [Error] Goal in project bmitool org.apache.maven.plugins: maven-compiler-plugin: 3.8.1: Failed to execute compile (default-compile): Fatal error Compile: Invalid flag:-

Please refer to this article for the article. https://qiita.com/YJ2222/items/caa0a21215e9d24288d4

Since this is my first post, I think there are some points that cannot be reached, but I would appreciate your guidance and encouragement.

Recommended Posts

Error when running git push heroku master on Heroku
[Heroku] How to solve when an error is displayed on git push heroku master
How to resolve errors when doing git push heroku master
Error resolution on Heroku
Show detailed error in Logger when running Java on server
Error when npm install on Windows 7
Error when deploying EC2 on CircleCI
DB error on deploying with Heroku
Error when trying to use heroku command
Problem with Method Not Allowed when git push heroku and open heroku URL
Relative path when running tomcat on eclipse
[Rails / Heroku] Error resolution procedure after push
Error in bundle install when running rails new
Unable to connect to chromedriver error when running SystemSpec
When deploying to Heroku, OpenApp causes an error
Internal commands when running Kotlin on IntelliJ IDEA
Precautions when running apps including Jackson on Glassfish 4.1
Try running an app made with Quarkus on Heroku
Error encountered with notes when deploying docker on rails
Introducing New Relic to Java apps running on Heroku
Ruby on Rails Tutorial Troublesome notes when running on Windows