Я пытаюсь подтолкнуть свое приложение Spring Boot к Heroku, но я получаю эту ошибку ниже. < /p>
[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
< /code>
! Ошибка: не удалось создать приложение с Maven
Мы извиняемся, эта сборка не удается! Если вы не можете найти проблему в коде приложения,
, пожалуйста, отправьте билет, чтобы мы могли помочь: https://help.heroku.com/
! Push отклонил, не удалось собрать приложение Java.
! Push failed
I checked the JAVA_HOME, java -version, java -version and mvn -version all points to the same java version: 11.0.3
My POM.xml file:
< /code>
4.0.0.0
орг.springframework.boot
Spring-boot-starter-parent
2.2.5.5.reelease
com.hugo.algamoney-api
algamone /> Algamoney-Api
Workshop Spring Boot Com Mongodb < /p>
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 ... r-compilin