-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate and Maven
PostPosted: Fri Nov 07, 2003 11:06 am 
Newbie

Joined: Fri Oct 10, 2003 8:53 am
Posts: 10
Location: Leeds, England
I am building a project using Maven that contains Hibernate.

One of the downsides of Maven appears to be that there is no way (that I have found) to allow you to specify dependencies upon dependencies.

So, for example, when including Hibernate in my project, i have to work out what dependencies Hibernate has, and include those as well. If the included libraries have dependencies, they too must be included.

So I end up having to specify a tree of dependencies in my project, and spend a LOT of time working out what the tree is, just to get my project to a point where Hibernate works.

Now I know that this is not an issue specific to Hibernate. Any project that has dependencies in this manner will have this problem.

However, one thing that could be done is to include an xml fragment with hibernate (similar to the VERSIONS text file in the lib directory) that lists the dependencies, and version numbers, and maybe a comment or two explaining when the dependant jars are required.

That way, when a developer wants to use Hibernate in Maven they can copy the xml fragment (or include it as an entity reference) into their Maven project.xml

Thoughts?...


Top
 Profile  
 
 Post subject: And another thing
PostPosted: Fri Nov 07, 2003 11:07 am 
Newbie

Joined: Fri Oct 10, 2003 8:53 am
Posts: 10
Location: Leeds, England
It appears as though Hibernate uses a bespoke version of cglib which is not included in the ibiblio website.

Where should I go to get cglib-asm?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2003 11:25 am 
Beginner
Beginner

Joined: Wed Oct 15, 2003 3:08 pm
Posts: 32
I went through the exact same pain a couple months ago. The nice thing is that once it is all worked out you get a lot of automation.

The asm bit was one of the harder parts for me to figure out, but here are the dependencies that I am using now:

<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>1.3.4</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm-util</artifactId>
<version>1.3.4</version>
</dependency>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.