小编Hug*_*ius的帖子

为什么当我尝试将我的 Spring Boot 应用程序推送到 heroku 时,它返回“编译致命错误:目标版本无效:11”

我正在尝试将我的 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 …
Run Code Online (Sandbox Code Playgroud)

java spring heroku maven spring-boot

6
推荐指数
1
解决办法
2275
查看次数

标签 统计

heroku ×1

java ×1

maven ×1

spring ×1

spring-boot ×1