[hibernate-dev] Build of 3.5.0-SNAPSHOT (trunk) fails.

Hardy Ferentschik hibernate at ferentschik.de
Wed Nov 11 10:33:38 EST 2009


Hi Tomasz,

Currently you need a JDk 5 and 6 to build Hibernate.
Have a look at this issue -  
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4499
You have define the variable jdk16_home in your settings.xml file pointing  
to the home directory
of a JDK 6.

Hope this helps.

--Hardy



On Wed, 11 Nov 2009 16:16:45 +0100, Tomasz Blachowicz  
<tblachowicz at gmail.com> wrote:

> Hi guys,
>
> I'm trying to build Hibernate from the SVN repository (rev. 17955). On my
> Windows laptop with Java 1.5 I'm getting the following error while  
> building
> Entity Manager:
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Hibernate Entitity Manager
> [INFO]    task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target
> [INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT:  
> checking
> for updates from JBoss-RELEASE
> [INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT:  
> checking
> for updates from JBoss-SNAPSHOTS
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote =
> '38a59e89c3339cc1e87583bf027d226c69657c40' - RETRYIN
> G
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote =
> '38a59e89c3339cc1e87583bf027d226c69657c40' - IGNORIN
> G
> [INFO] [enforcer:enforce {execution: enforce-java}]
> [INFO] [test-ext:extend {execution: default}]
> [INFO] starting test environment extension mojo
> [INFO] [resources:resources]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 2 resources
> [INFO] [compiler:compile]
> [INFO] Compiling 157 source files to
> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\classes
> [INFO] [resources:testResources]
> [WARNING] File encoding has not been set, using platform encoding Cp1252,
> i.e. build is platform dependent!
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 13 resources
> [INFO] Copying 19 resources to ../bundles
> [INFO] [antrun:run {execution: process_annotations}]
> [INFO] Executing tasks
>      [echo] processing JPA annotations
>     [mkdir] Created dir:
> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
>     [javac] Compiling 191 source files to
> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: Error running
> ${jdk16_home}\bin\javac compiler
>
> CreateProcess: ${jdk16_home}\bin\javac -d
> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\generated-src\jpamodelgen
> -classpath C:\eclipse\galileo\workspa
> ce\external\hibernate\entitymanager\target\generated-src\jpamodelgen;C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target\test-classes;C:\eclipse\galileo\work
> space\external\hibernate\entitymanager\target\classes;C:\eclipse\galileo\workspace\external\hibernate\core\target\hibernate-core-3.5.0-SNAPSHOT.jar;C:\Maven\repo\antlr\antlr\
> 2.7.6\antlr-2.7.6.jar;C:\Maven\repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar;C:\Maven\repo\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Maven\repo\xml-
> apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Maven\repo\javax\transaction\jta\1.1\jta-1.1.jar;C:\Maven\repo\org\slf4j\slf4j-api\1.5.8\slf4j-api-1.5.8.jar;C:\Maven\repo\hsqldb\
> hsqldb\1.8.0.2\hsqldb-1.8.0.2.jar;C:\eclipse\galileo\workspace\external\hibernate\annotations\target\hibernate-annotations-3.5.0-SNAPSHOT.jar;C:\Maven\rep
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 50 seconds
> [INFO] Finished at: Wed Nov 11 15:06:57 GMT 2009
> [INFO] Final Memory: 31M/63M
> [INFO]
> ------------------------------------------------------------------------
>
> Can you please give me a hand with the build? Is the build supposed to  
> work
> only on Java 1.6 box?
>
> Cheers,
> Tom
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list