0
我遇到了构建hibernate-orm新结帐的问题。基本上我遵循Contribute to Hibernate ORM的说明。首先,我克隆当前的树干从GitHub:从源代码构建hibernate-orm挂起
git clone [email protected]:hibernate/hibernate-orm.git
从那以后,我开始gradle这个身材:
gradlew clean build
我的机器配置是:
- 64位Windows 7
- JDK 1.7 .0_012
执行模块hibernate-core的测试任务期间,构建过程将停止并永久挂起。其中一项测试也失败了,但这似乎是一个已知问题。我真正的问题在于构建不会继续 - 即使在几个小时之后,也没有进展 - 构建过程只是挂起。我看到下面的控制台输出:
Maven settings.xml file did not exist : C:\Users\dajudge\.m2\settings.xml
:documentation:clean
:hibernate-c3p0:clean
:hibernate-core:clean
:hibernate-ehcache:clean UP-TO-DATE
:hibernate-enhance-maven-plugin:clean UP-TO-DATE
:hibernate-entitymanager:clean UP-TO-DATE
:hibernate-envers:clean UP-TO-DATE
:hibernate-gradle-plugin:clean UP-TO-DATE
:hibernate-hikaricp:clean UP-TO-DATE
:hibernate-infinispan:clean UP-TO-DATE
:hibernate-jpamodelgen:clean UP-TO-DATE
:hibernate-osgi:clean UP-TO-DATE
:hibernate-proxool:clean UP-TO-DATE
:hibernate-testing:clean
:release:clean
:documentation:compileJava UP-TO-DATE
:documentation:processResources UP-TO-DATE
:documentation:classes UP-TO-DATE
:documentation:jar
:documentation:assemble
:documentation:compileTestJava UP-TO-DATE
:documentation:processTestResources UP-TO-DATE
:documentation:testClasses UP-TO-DATE
:documentation:test UP-TO-DATE
:documentation:check UP-TO-DATE
:documentation:build
:hibernate-c3p0:copyJavaApiSignature
:hibernate-c3p0:runSourceGenerators UP-TO-DATE
:hibernate-core:copyJavaApiSignature
:hibernate-core:generateGrammarSource
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
[ant:null] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:hibernate-core:jaxb
:hibernate-core:runSourceGenerators
:hibernate-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:hibernate-core:processResources
:hibernate-core:classes
:hibernate-core:jar
:hibernate-c3p0:compileJava
:hibernate-c3p0:processResources
:hibernate-c3p0:classes
:hibernate-c3p0:jar
:hibernate-c3p0:assemble
:hibernate-c3p0:checkstyleMain
:hibernate-c3p0:findbugsMain
FindBugs rule violations were found. See the report at: file:///D:/git/github/hibernate-orm/hibernate-c3p0/target/reports/findbugs/main.xml
:hibernate-c3p0:runTestSourceGenerators UP-TO-DATE
:hibernate-testing:copyJavaApiSignature
:hibernate-testing:runSourceGenerators UP-TO-DATE
:hibernate-testing:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:hibernate-testing:processResources UP-TO-DATE
:hibernate-testing:classes
:hibernate-testing:jar
:hibernate-c3p0:compileTestJava
Note: D:\git\github\hibernate-orm\hibernate-c3p0\src\test\java\org\hibernate\test\c3p0\C3P0ConnectionProviderTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:hibernate-c3p0:processTestResources
:hibernate-c3p0:testClasses
:hibernate-c3p0:findbugsTest
:hibernate-c3p0:test
:hibernate-c3p0:buildDashboard
:hibernate-c3p0:check
:hibernate-c3p0:build
:hibernate-core:assemble
:hibernate-core:checkstyleMain
Checkstyle rule violations were found. See the report at: file:///D:/git/github/hibernate-orm/hibernate-core/target/reports/checkstyle/main.xml
:hibernate-core:findbugsMain
FindBugs rule violations were found. See the report at: file:///D:/git/github/hibernate-orm/hibernate-core/target/reports/findbugs/main.xml
:hibernate-core:generateTestGrammarSource UP-TO-DATE
:hibernate-core:runTestSourceGenerators UP-TO-DATE
:hibernate-core:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:hibernate-core:processTestResources
:hibernate-core:testClasses
:hibernate-core:findbugsTest
FindBugs rule violations were found. See the report at: file:///D:/git/github/hibernate-orm/hibernate-core/target/reports/findbugs/test.xml
:hibernate-core:test
org.hibernate.test.fileimport.MultiLineImportFileTest > testImportFile FAILED
org.junit.ComparisonFailure at MultiLineImportFileTest.java:83
> Building > :hibernate-core:test > 1929 tests completed, 1 failed, 81 skipped
此时的构建过程永远挂,我看到在任务监视器3个Java进程:
- 的gradle这个过程本身
- 2个Java进程(可能是测试跑步者?)
挖掘interwebs没有提出任何有用的东西,所以我转向使用以下问题的stackoverflow社区:
有没有人知道我在做什么错在这里?我如何从源码成功构建hibernate-orm?
在此先感谢您的帮助!