-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Trying to build the monolith jar from source
PostPosted: Thu Aug 26, 2010 2:52 pm 
Newbie

Joined: Fri Feb 25, 2005 4:11 pm
Posts: 4
Location: Fayetteville, GA
Hi,
I'm attempting to build the hibernate3.jar mother of all jars from source. I've been able to build the subsidiary jars (envers, core, etc...) but haven't been able to figure out how to build Mama.
I'm not a maven user normally, so don't assume I've tried the obvious. :-)


Top
 Profile  
 
 Post subject: Re: Trying to build the monolith jar from source
PostPosted: Fri Aug 27, 2010 7:41 am 
Newbie

Joined: Fri Feb 25, 2005 4:11 pm
Posts: 4
Location: Fayetteville, GA
To answer my own question, so I can find it next time I need it. ;-)

The problem I was having was it never seeming to pick up my changes. I finally realized that even though it was indeed compiling my source, that's not what it was using to create the final jar. I discovered this by adding a new method, opening the final jar, running javap on the class and noting my method didn't exist.

The culprit was maven was pulling down the latest jars from the jboss site and installing them in the repository, then using them, not my modified code, to assemble the final monolithic jar. As a work around I let the procedure run as normal but, between the installation of the component jars and the creation of the monolithic jar, I installed my modified jars in the maven repository.

scripted thusly:

Code:
#!/usr/bin/env zsh

cd /usr/local/java/sources/hibernate/3.5.5-Final

mvn -e -Dmaven.test.skip=true install
#mvn -e -Dmaven.test.skip=true clean install

cd annotations
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-annotations -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-annotations-3.5.5-Final.jar

cd ../connection-c3p0
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-c3p0 -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-c3p0-3.5.5-Final.jar

cd ../core
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-core -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-core-3.5.5-Final.jar

cd ../cache-ehcache
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-ehcache -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-ehcache-3.5.5-Final.jar

cd ../entitymanager
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-entitymanager -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-entitymanager-3.5.5-Final.jar

cd ../envers
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-envers -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-envers-3.5.5-Final.jar

cd ../cache-infinispan
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-infinispan -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-infinispan-3.5.5-Final.jar

cd ../cache-jbosscache
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-jbosscache -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-jbosscache-3.5.5-Final.jar

cd ../jdbc3-testing
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-jdbc3-testing -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-jdbc3-testing-3.5.5-Final.jar

cd ../jdbc4-testing
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-jdbc4-testing -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-jdbc4-testing-3.5.5-Final.jar

cd ../jmx
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-jmx -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-jmx-3.5.5-Final.jar

cd ../cache-oscache
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-oscache -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-oscache-3.5.5-Final.jar

cd ../connection-proxool
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-proxool -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-proxool-3.5.5-Final.jar

cd ../cache-swarmcache
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-swarmcache -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-swarmcache-3.5.5-Final.jar

cd ../testing
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-testing -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-testing-3.5.5-Final.jar

cd ../testsuite
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-testsuite -Dversion=3.5.5-Final -Dpackaging=jar -Dfile=target/hibernate-testsuite-3.5.5-Final.jar


cd ../distribution

mvn assembly:assembly


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.