Tuesday, April 28, 2009

How to build Hibernate Core...I think?

Checkout the lastest SVN trunk from http://anonsvn.jboss.org/repos/hibernate/core/trunk.
I got rev 16450

Set your JAVA_HOME environment variable to a Java 5 JDK (it fails with Java 6).
Mine is set to C:\Program Files\Java\jdk1.5.0_17

Edit parent/pom.xml to add these lines in bold.

...
         </mailingList>
     </mailingLists>


    <repositories>
        <repository>
            <id>jboss</id>
            <url>http://repository.jboss.com/maven2/</url>
        </repository>

        <repository>
            <id>jboss-snapshot</id>
            <url>http://snapshots.jboss.org/maven2</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>jboss</id>
            <url>http://repository.jboss.com/maven2/</url>
        </pluginRepository>
    </pluginRepositories>


     <build>
         <plugins>
             <plugin>
...

Download Maven.
I got apache-maven-2.1.0-bin.zip

Unpack Maven somewhere, cd to the hibernate-core trunk directory and run this command.

<path to apache-maven>/bin/mvn package

This should automatically download everything, build the whole thing, and run the tests.

My test results were

Tests run: 117, Failures: 0, Errors: 56, Skipped: 0

At this point I have no idea what to do…

No comments:

Post a Comment