Почему, когда я пытаюсь подтолкнуть свое приложение для Spring Boot в Heroku, он возвращает «Компилирование фатальной ошJAVA

Программисты JAVA общаются здесь
Anonymous
Почему, когда я пытаюсь подтолкнуть свое приложение для Spring Boot в Heroku, он возвращает «Компилирование фатальной ош

Сообщение Anonymous »

Я пытаюсь передать свое приложение Spring Boot к Heroku, но я получаю эту ошибку ниже.[INFO] Changes detected - recompiling the module!
[INFO] Compiling 41 source files to /tmp/build_4ad2779b666eb1cd25b32f96d104b00b/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.273 s
[INFO] Finished at: 2020-03-23T14:23:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project algamoney-api: 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] http://cwiki.apache.org/confluence/disp ... nException
! 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

Я проверил java_home, java -version , java -version и mvn -version Все точки на одну и ту же версию java executive, 11.0.3
my pom.xml file:
Pom.xml file:
Pom.xml
Pom.xml
PrettyPrint-Override ">

4.0.0

org.springframework.boot
spring-boot-starter-parent
2.2.5.RELEASE


com.hugo.algamoney-api
algamoney-api
1.0.0-SNAPSHOT
algamoney-api
Workshop Spring Boot com mongodb



org.springframework.boot
spring-boot-starter-data-jpa


org.springframework.boot
spring-boot-starter-web



org.springframework.boot
spring-boot-devtools
runtime
true


org.springframework.boot
spring-boot-starter-test
test


org.junit.vintage
junit-vintage-engine





mysql
mysql-connector-java
runtime



org.flywaydb
flyway-core




org.hibernate
hibernate-java8



com.fasterxml.jackson.datatype
jackson-datatype-jsr310




org.apache.commons
commons-lang3



org.hibernate
hibernate-jpamodelgen
provided




org.springframework.boot
spring-boot-starter-security



org.springframework.security.oauth
spring-security-oauth2
2.3.5.RELEASE



org.springframework.security
spring-security-jwt
1.0.10.RELEASE



org.springframework.boot
spring-boot-configuration-processor
true







com.heroku.sdk
heroku-maven-plugin
2.0.8



org.springframework.boot
spring-boot-maven-plugin

11






Подробнее здесь: https://stackoverflow.com/questions/608 ... atal-error

Вернуться в «JAVA»