我正在尝试从 GitHub 中的源代码构建 hibernate-orm:https://github.com/hibernate/hibernate-orm .
我遵循了 GitHub 站点中的“快速入门”指南:
git clone git://github.com/hibernate/hibernate-orm.git
cd hibernate-orm
./gradlew clean build
The build requires a Java 8 JDK as JAVA_HOME, but will ensure Java 6 compatibility.
但是,我得到了以下错误:
FAILURE: Build failed with an exception.
- Where:
Build file '/Users/salee/git/hibernate-orm/build.gradle' line: 291
- What went wrong:
A problem occurred configuring project ':hibernate-c3p0'.
A problem occurred configuring project ':hibernate-core'.
Cannot get property 'absolutePath' on null object
有人愿意帮助我吗?
最佳答案
这听起来像是一个损坏的构建。在这种情况下,您最好的选择可能是在 Hibernate 的 GitHub 项目中提出问题并附上输出
./gradlew --stacktrace clean build
或者, pull 最新代码并重试。该构建似乎不太可能长时间保持中断状态,它可能已经被修复。
关于java - 从 GitHub 中的源代码构建 hibernate-orm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31401587/