SpringBoot Heroku org.maven.plugins:maven-compiler-plugin:3.8.1:编译失败

卢卡斯·阿尔塔米拉诺(Lucas Altamirano)

好吧,我已经看过其他帖子,但是无法解决我的问题。我试图将springboot项目部署到heroku,但是发生此错误。无法在项目上执行目标org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile(默认编译):致命错误编译:无效目标版本:11-> [帮助1]

Ive遵循heroku指南:

$ git init
$ heroku git:remote -a <project>
$ git add .
$ git commit -am "first"
$ git push heroku master

错误:

remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] Total time:  12.632 s
remote:        [INFO] Finished at: 2020-11-09T22:59:42Z
remote:        [INFO] ------------------------------------------------------------------------
remote:        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project scoringsalud-backend: Fatal error compiling: invalid target releas
e: 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: !
remote:  ! ## Warning - The same version of this code has already been built: d8ea942613535eca3b2881713d82bcbea9f267aa
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version d8ea942613535eca3b2881713d82bcbea9f267aa
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to scoringsalud.
remote:
To https://git.heroku.com/scoringsalud.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/scori

ngsalud.git'

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.4.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.example</groupId>
    <artifactId>scoringsalud-backend</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>scoringsalud-backend</name>
    <description>Backend Springboot and MongoDb project for Scoring Salud</description>

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

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-mongodb</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-rest</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>

可能是什么问题呢?怎么解决呢?请我需要帮助:(

卢卡斯·阿尔塔米拉诺(Lucas Altamirano)

我可以通过将所有内容降级到1.8版(包括我的路径)来解决此问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法在项目acme模块上执行目标org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile(default-compile):编译失败:

来自分类Dev

无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile

来自分类Dev

WSO2:找不到org.apache.maven.plugins:maven-compiler-plugin.jar:3.2.3

来自分类Dev

错误无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile

来自分类Dev

无法在项目上执行目标org.apache.maven.plugins:maven-compiler-plugin(默认编译):致命错误编译:找不到tools.jar

来自分类Dev

插件org.apache.maven.plugins:maven-compiler-plugin或其依赖项之一无法解析

来自分类Dev

无法执行目标 org.apache.maven.plugins:maven-compiler-plugin :3.8.0:compile (default-compile)

来自分类Dev

Maven构建失败并显示错误消息Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4或其依赖项之一无法解析

来自分类Dev

Maven构建失败:未能执行目标org.apache.maven.plugins:Maven的编译器插件:3.0:编译(默认编译):编译失败

来自分类Dev

gwt-maven-plugin:编译失败,“状态为1”

来自分类Dev

gwt-maven-plugin:编译失败“状态为1”

来自分类Dev

无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.4:generate

来自分类Dev

无法执行目标org.apache.maven.plugins:maven-site-plugin:

来自分类Dev

无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

来自分类Dev

无法在项目smrr上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test(默认测试):存在测试失败

来自分类Dev

Maven忽略了“ maven-compiler-plugin”要求

来自分类Dev

Maven的 - 无法执行目标org.apache.maven.plugins:Maven的编译器插件:3.7.0:编译用java 10

来自分类Dev

Maven:报告插件org.apache.maven.plugins:maven-project-info-reports-plugin具有空版本

来自分类Dev

Maven全新安装:无法执行目标org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources

来自分类Dev

Maven编译器插件错误(maven-compiler-plugin:2.5.1:testCompile)

来自分类Dev

插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依赖项之一无法解析

来自分类Dev

缺少org.apache.maven.plugins:maven-war-plugin:jar:3.0的POM,没有可用的依赖项信息

来自分类Dev

Maven无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.5:clean无法删除access_log

来自分类Dev

父pom中的maven-compiler-plugin

来自分类Dev

我怎样才能使scala-maven-plugin看到由maven-compiler-plugin编译的类?

来自分类Dev

org.jboss.redhat-fuse/fabric8-maven-plugin 和 io.fabric8/fabric8-maven-plugin 之间的区别

来自分类Dev

无法在JDK8上使用org.jvnet.jax-ws-commons.jaxws-maven-plugin

来自分类Dev

无法计算构建计划:插件org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖项之一无法解析

来自分类Dev

无法计算构建计划:插件org.apache.maven.plugins:maven-resources-plugin:2.6或其依赖项之一无法解析

Related 相关文章

  1. 1

    无法在项目acme模块上执行目标org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile(default-compile):编译失败:

  2. 2

    无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile

  3. 3

    WSO2:找不到org.apache.maven.plugins:maven-compiler-plugin.jar:3.2.3

  4. 4

    错误无法执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile

  5. 5

    无法在项目上执行目标org.apache.maven.plugins:maven-compiler-plugin(默认编译):致命错误编译:找不到tools.jar

  6. 6

    插件org.apache.maven.plugins:maven-compiler-plugin或其依赖项之一无法解析

  7. 7

    无法执行目标 org.apache.maven.plugins:maven-compiler-plugin :3.8.0:compile (default-compile)

  8. 8

    Maven构建失败并显示错误消息Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4或其依赖项之一无法解析

  9. 9

    Maven构建失败:未能执行目标org.apache.maven.plugins:Maven的编译器插件:3.0:编译(默认编译):编译失败

  10. 10

    gwt-maven-plugin:编译失败,“状态为1”

  11. 11

    gwt-maven-plugin:编译失败“状态为1”

  12. 12

    无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.4:generate

  13. 13

    无法执行目标org.apache.maven.plugins:maven-site-plugin:

  14. 14

    无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

  15. 15

    无法在项目smrr上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test(默认测试):存在测试失败

  16. 16

    Maven忽略了“ maven-compiler-plugin”要求

  17. 17

    Maven的 - 无法执行目标org.apache.maven.plugins:Maven的编译器插件:3.7.0:编译用java 10

  18. 18

    Maven:报告插件org.apache.maven.plugins:maven-project-info-reports-plugin具有空版本

  19. 19

    Maven全新安装:无法执行目标org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources

  20. 20

    Maven编译器插件错误(maven-compiler-plugin:2.5.1:testCompile)

  21. 21

    插件org.apache.maven.plugins:maven-clean-plugin:2.5或其依赖项之一无法解析

  22. 22

    缺少org.apache.maven.plugins:maven-war-plugin:jar:3.0的POM,没有可用的依赖项信息

  23. 23

    Maven无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.5:clean无法删除access_log

  24. 24

    父pom中的maven-compiler-plugin

  25. 25

    我怎样才能使scala-maven-plugin看到由maven-compiler-plugin编译的类?

  26. 26

    org.jboss.redhat-fuse/fabric8-maven-plugin 和 io.fabric8/fabric8-maven-plugin 之间的区别

  27. 27

    无法在JDK8上使用org.jvnet.jax-ws-commons.jaxws-maven-plugin

  28. 28

    无法计算构建计划:插件org.apache.maven.plugins:maven-jar-plugin:2.3.2或其依赖项之一无法解析

  29. 29

    无法计算构建计划:插件org.apache.maven.plugins:maven-resources-plugin:2.6或其依赖项之一无法解析

热门标签

归档