gpt4 book ai didi

hibernate - gradle 说, 'see compiler error output' ,但没有

转载 作者:行者123 更新时间:2023-12-03 05:01:14 30 4
gpt4 key购买 nike

我正在尝试从 4.3.11.Final 标签构建 hibernate-orm,我得到以下信息。添加 --info 不会提供更多信息。

Executing task ':hibernate-core:runAnnotationProcessors' (up-to-date check took 0.157 secs) due to:
No history is available.
Compiling with JDK Java compiler API.
:hibernate-core:runAnnotationProcessors FAILED
:hibernate-core:runAnnotationProcessors (Thread[main,5,main]) completed. Took 3.384 secs.

FAILURE: Build failed with an exception.

* Where:
Script '/Users/bmargulies/hibernate-orm/source-generation.gradle' line: 305

* What went wrong:
Execution failed for task ':hibernate-core:runAnnotationProcessors'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

最佳答案

如果您在 source-generation.gradle 的第 328 行删除诊断监听器,您将很容易得到一个强有力的线索。 .免责声明:这只是一个黑客。

这:

return compiler.getTask(null, null, diagnosticListener, options, null, compilationUnits);

变成:
return compiler.getTask(null, null, null, options, null, compilationUnits);

然后,您将在 std 错误中获得一些输出,例如:
\bla\bla\hibernate-orm\hibernate-core\src\main\java\org\hibernate\hql\internal\ast\HqlSqlWalker.java:44: error: package org.hibernate.hql.internal.antlr does not exist
import org.hibernate.hql.internal.antlr.HqlSqlBaseWalker;

我不是 hibernate 专家,但谷歌搜索此错误消息导致我进入一个页面,其中指出:

4.3.x needs to be built with JDK 1.7



我猜你是在 JDK 1.8 上构建的。深入了解细节超出了我的 hibernate 知识:-) 希望这会有所帮助。

关于hibernate - gradle 说, 'see compiler error output' ,但没有,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36516623/

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