-->
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: Maven and Hibernate - missing artifact
PostPosted: Tue Jan 18, 2011 12:42 pm 
Newbie

Joined: Tue Jan 18, 2011 12:33 pm
Posts: 1
Hello,
I am running into trouble pulling down Hibernate from Maven. I am trying to upgrade my project to a new version of Hibernate from 2.2.5.ga. Does anyone have a pom.xml file that works on 3.5.x or 3.6.0-Final?

Thanks,
-Ryan

pom.xml
Code:
      <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.5.3-Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.5.3-Final</version>
        </dependency>



Error
Code:
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.5.3-Final/hibernate-3.5.3-Final.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.243s
[INFO] Finished at: Tue Jan 18 11:37:19 EST 2011
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ctjava: Could not resolve dependencies for project net.cuprak.web:ctjava:war:1.0-SNAPSHOT: Could not find artifact org.hibernate:hibernate:jar:3.5.3-Final in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/) -> [Help 1]
[ERROR]


Top
 Profile  
 
 Post subject: Re: Maven and Hibernate - missing artifact
PostPosted: Thu Jan 20, 2011 7:03 am 
Newbie

Joined: Fri May 25, 2007 4:37 am
Posts: 13
Location: Germany
The JBoss Repository changed it´s URL as noted in the sticky: viewtopic.php?f=1&t=1005998


Top
 Profile  
 
 Post subject: Re: Maven and Hibernate - missing artifact
PostPosted: Sat Jan 22, 2011 10:55 am 
Newbie

Joined: Tue Jan 18, 2011 7:11 pm
Posts: 5
The repository URL is correct as is. The 'hibernate' artifact is just an aggregator, so it only has a pom, no jar. You need to add dependencies on hibernate-core and -entitymanager, -annotations, and -validator if you need them.


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.