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