J
J
JframeAlex2019-04-20 23:23:07
Java
JframeAlex, 2019-04-20 23:23:07

Can't Deploy Your App to Heroku?

Good evening! Unable to deploy application
[INFO] BUILD FAILURE
[INFO] -------------------------------------- ----------------------------------
[INFO] Total time: 11.583 s
[INFO] Finished at: 2019- 04-20T20:03:03Z
[INFO]---------------------------------------- --------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler -plugin:3.8.0:compile (default-compile) on project ulmart: Fatal error compiling: invalid target release: 11 -> [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] cwiki.apache.org/confluence/display/MAVEN/MojoExec...
! 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.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Satisfied IT, 2019-04-20
@JframeAlex

Google on demand

Fatal error compiling: invalid target release: 11 -> [Help 1]

We go to the link: https://stackoverflow.com/questions/28291691/fatal...
We read and understand that the wrong jdk version was used We
analyze the difference and understand what we needtarget release: 11

C
chel2287, 2021-06-01
@chel2287

Solved. Deleted this part of code

<properties>
<java.version>11</java.version>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question