【问题标题】:Failed to upload spring boot to heroku无法将 Spring Boot 上传到 Heroku
【发布时间】:2021-01-22 09:07:32
【问题描述】:

在 application.properties 中我将 java 和 maven 版本指定为

java.runtime.version=11
maven.version=4.0.0

未能执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project heroku-spring: Fatal error compile: invalid target release: 11

我该如何解决?

【问题讨论】:

标签: java spring-boot maven heroku


【解决方案1】:

您可以在 pom.xml 文件中更改 maven 和 java 版本。

<properties>
    <java.version>1.8</java.version>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <maven.compiler.target>${java.version}</maven.compiler.target>
</properties>

【讨论】:

    猜你喜欢
    • 2015-10-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-10
    • 1970-01-01
    • 2020-05-31
    • 2020-06-02
    • 1970-01-01
    相关资源
    最近更新 更多