-->
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.  [ 13 posts ] 
Author Message
 Post subject: hib 3.2.6.ga maven
PostPosted: Tue Mar 04, 2008 5:46 am 
Newbie

Joined: Wed Feb 28, 2007 2:56 pm
Posts: 6
Hi,

I'd like to use the latest hibernate release (3.2.6.ga) for one of my maven projects. The problem is that this version is not present in the maven central repository. Why not? When will it be avalaible? How can I use it until then?

Thanks for your answers.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 9:14 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
I think many people have this problem - and they will not find these up-to-date versions in the repositories. If you look at the JBoss maven repo, you only find damned old versions. Which is another thing I cannot understand: why do JBoss releases such as 4.2.x not use the latest Hibernate versions?
I questioned this in another thread but did not get any answer.

Because my project is also based on Maven and I want to have the latest Hibernate release, I handled this issue by manually placing the Hibernate jars into my Maven repository. Not a nice thing.

Carlo


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 9:52 am 
Newbie

Joined: Wed Feb 28, 2007 2:56 pm
Posts: 6
Hi Carlo,

Thanks for your answer, but I am quite new to maven too. So could you explain me how you put hibernate jar to your maven repo?
I think I only have to add 3.2.6 jar with an associated pom describing the licence used and the librairies needed?
But how do you I know which librairies are needed by v2.3.6?

Do you use same group/artifact as those used by previous version or do you use a specific path for this "dirty" dependence?

I'm not using JBoss but I upgraded hibernate from 3.2.1 to 3.2.5 and unfortunatly v3.2.4 and 3.2.5 introduces a bug on LazyInitializationException when clearing session while retrieving objects via an iterator. This is why I need to uprade once more to 3.2.6 which corrects this bug.

This is a major bug for me and I can't understand why hibernate team does'nt give us an easy way to correct it by deploying this version into central maven repository.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 12:17 pm 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
isaac wrote:
I think I only have to add 3.2.6 jar with an associated pom describing the licence used and the librairies needed?
But how do you I know which librairies are needed by v2.3.6?

I do not think that you should care about the needed libraries of Hibernate in your Maven project - you do not build Hibernate, but your application.

Carlo


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 1:54 pm 
Newbie

Joined: Wed Feb 28, 2007 2:56 pm
Posts: 6
Thanks again for your answer Carlo.

In fact, I found the jar, javadoc, sources and pom with needed librairies for maven at this adress :
http://jira.codehaus.org/browse/MAVENUPLOAD-1950

Everything works fine now.
Hope it could help someone else.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 4:00 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
isaac wrote:
In fact, I found the jar, javadoc, sources and pom with needed librairies for maven at this adress :
http://jira.codehaus.org/browse/MAVENUPLOAD-1950

Hi Issac,
above is a link to a JIRA entry on codehaus which requests to upload Hibernate 3.2.6 to a repository; the JIRA entry itself says it is "fixed". But I cannot find Hibernate in codehaus repository.

So can you please give us a complete link address to a Maven2 repository which can be used for a Hibernate 3.2.6 dependency in a maven POM?

Thanks, Carlo


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 4:36 am 
Newbie

Joined: Wed Feb 28, 2007 2:56 pm
Posts: 6
Hi Carlo,

The JIRA entry I indicated on codehaus gives you a link (http://svn.carbonfive.com/public/maven- ... bundle.jar) to a jar that contains javadoc, source and hibernate 3.2.6.ga jar.
There is also the pom file which lists all hibernate dependencies.

I don't think you can find the hibernate jar in a maven repository. What I did is just put hibernate jar and pom on my local repository, just like you did I think. The path where I put those file in my repo is "org / hibernate / hibernate", to fit to the pom description :
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<packaging>jar</packaging>
<version>3.2.6.ga</version>

I also renamed the pom.xml : hibernate-3.2.6.ga.pom (but this may be because I use archiva)

So I don't download the jar from a maven2 repo but from my local server repo when I need it.

Hope my english is not too bad and my answer will help you.
Have a nice day.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 07, 2008 5:01 am 
Newbie

Joined: Tue Aug 15, 2006 5:49 am
Posts: 4
@carlolf

you will find the library in the official maven2 repository under http://repo1.maven.org/maven2/org/hiber ... /3.2.6.ga/


Top
 Profile  
 
 Post subject: Maven download doesn't work for 3.2.6.ga
PostPosted: Fri Mar 21, 2008 7:11 pm 
Newbie

Joined: Fri Mar 21, 2008 6:54 pm
Posts: 1
muhviehstarr wrote:
you will find the library in the official maven2 repository under http://repo1.maven.org/maven2/org/hiber ... /3.2.6.ga/


When I try to download Hibernate I get the following error message:

Code:
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from:
      http://java.sun.com/products/jta

  Then, install it using the command:
      mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
     1) ch.synacon:sprinter:war:1.0.0
     2) org.hibernate:hibernate:jar:3.2.6.ga
     3) javax.transaction:jta:jar:1.0.1B

----------
1 required artifact is missing.

for artifact:
  ch.synacon:sprinter:war:1.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


The jta's jar file is not in the repository.

The link to it seems to make the entry of Hibernate in the maven2 repository useless.

Does anyone have a solution for this problem?

Ingo.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 20, 2008 8:17 am 
Beginner
Beginner

Joined: Sat Oct 20, 2007 8:28 am
Posts: 28
sorry for poping this up , but still getting the same error is there a solution for this problem other than manualy installing the jta or excluding it ?

i'm using :
Code:
<dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-entitymanager</artifactId>
      <version>3.3.2.GA</version>
</dependency>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 4:23 pm 
Newbie

Joined: Mon Oct 18, 2004 11:19 am
Posts: 8
amnon wrote:
sorry for poping this up , but still getting the same error is there a solution for this problem other than manualy installing the jta or excluding it ?

i'm using :
Code:
<dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-entitymanager</artifactId>
      <version>3.3.2.GA</version>
</dependency>



http://www.hibernate.org/422.html


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 2:27 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
7uc0 wrote:


But I think there is a mistake in the document sample - based on some curious organization at JBoss' websites. You should not use

http://repository.jboss.com/maven2/

but - this is different and on the latest version level - this one:

http://repository.jboss.org/maven2/

_________________
Carlo
-----------------------------------------------------------
please don't forget to rate if this post helped you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 4:18 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
Sorry, I was wrong: repository.jboss.org and repository.jboss.com are the same.

But there is a difference on the pathes if you are looking for Hibernate. One path is "http://repository.jboss.org/maven2/hibernate/hibernate3/" and here you won't find the latest version. Whereas "http://repository.jboss.org/maven2/org/hibernate/" would lead you to the latest versions, i.e. for "hibernate-core" or " hibernate-entitymanager/".

I'm somewhat confused about this.

_________________
Carlo
-----------------------------------------------------------
please don't forget to rate if this post helped you


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