Building hibernate-orm from source at GitHub

I am trying to create hibernate-orm from source on GitHub: https://github.com/hibernate/hibernate-orm .

I followed the "quick start" recommendation on 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.

      

However, I got the following error:

FAILURE: Build failed with exception.

  • Where:

Build file '/ Users / salee / git / hibernate-orm / build.gradle': 291

  • Something went wrong:

There was a problem configuring project ': hibernate-c3p0'.

There was a problem configuring project ': hibernate-core'.

Can't get absolutePath property for null object

Can anyone help me?

+3


source to share


2 answers


It sounds like a broken assembly. In this case, the best option might be to raise the issue in the Hibernate GitHub project and attach the output

./gradlew --stacktrace clean build

      



Alternatively pull in the last code and try again. It seems unlikely that the build will break for a long time and it may have already been fixed.

+1


source


I solved the problem. This is because of my Mac environment where rt.jar is classes.jar: What's the use of rt.jar file in java? [Duplicate]

By typing "./gradlew --stacktrace clean build" I found that a null error occurs on line 156 of HibernateBuildPlugin.groovy.

javaCompileTask.options.bootClasspath = java6Home.runtimeJar.absolutePath



I found the runtimeJar becomes null and changes the string to

javaCompileTask.options.bootClasspath = "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar"

Then the hibernation building was successful.

0


source







All Articles