gpt4 book ai didi

spring - 无法执行目标 org.maven.plugins :maven-compiler-plugin:3. 8.1:compile (default-compile) on project (target 11)

转载 作者:行者123 更新时间:2023-12-03 22:54:52 30 4
gpt4 key购买 nike

我试图从 spring.io 指南中部署最简单的应用程序
Guide

但是我有一些麻烦..
我做了什么:

  • 创建的项目。 (来自 spring.io 教程)
  • 下载 heroku CLI
  • 在 IntellijIdea 中打开终端
    3.1 git初始化
    3.2 git 添加。
    3.3 git commit -m "fd"
    3.4 git remote 添加heroke 'url'
    3.5 git push heroku master
  • 在最后一个命令之后我有这个错误:
  • remote:        [INFO] BUILD FAILURE
    remote: [INFO] ------------------------------------------------------------------------
    remote: [INFO] Total time: 12.608 s
    remote: [INFO] Finished at: 2020-01-23T18:20:18Z
    remote: [INFO] ------------------------------------------------------------------------
    remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project milliapp: Fatal error compiling: invalid target release: 11 -> [Help 1]
    remote: [ERROR]
    remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    remote: [ERROR]
    remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
    remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    remote:
    remote: ! ERROR: Failed to build app with Maven
    remote: We're sorry this build is failing! If you can't find the issue in application code,
    remote: please submit a ticket so we can help: https://help.heroku.com/
    remote:
    remote: ! Push rejected, failed to compile Java app.
    remote:
    remote: ! Push failed
    remote: Verifying deploy...
    remote:
    remote: ! Push rejected to deploymilliapp.
    remote:
    To https://git.heroku.com/deploymilliapp.git
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://git.heroku.com/deploymilliapp.git'

    最佳答案

    解决了。
    删除了这部分代码

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

    关于spring - 无法执行目标 org.maven.plugins :maven-compiler-plugin:3. 8.1:compile (default-compile) on project (target 11),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59885015/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com