使用Gradle从源代码构建Hibernate-orm

时间:2014-03-23 12:40:23

标签: hibernate

我试图从源代码构建Hibernate-orm,我收到以下错误:

    BUILD FAILED

Total time: 4.738 secs
Marcs-MacBook-Pro:hibernate-orm marcschipperheijn$ gradle cleanEclipse eclipse
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/Shared/java/projects/hibernate/hibernate-orm/build.gradle' line: 107

* What went wrong:
A problem occurred evaluating root project 'hibernate-orm'.
> Plugin with id 'maven-publish' not found.

我的jdk是1.7.0_51而且我在Mac OS Maverick上。

有什么想法吗?我是Gradle的新手,这个谷歌搜索似乎没有太多信息。

1 个答案:

答案 0 :(得分:0)

您没有使用gradle wrapper,它正是用于确保项目中的每个人都使用相同版本的gradle。使用

./gradlew <tasks>