-->
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: Newbie having trouble with the tutorial
PostPosted: Sun Apr 03, 2011 2:25 am 
Newbie

Joined: Sat Apr 02, 2011 9:20 pm
Posts: 1
Hi,
I have heard a lot of good things about the hibernate frame work, so i decided to try it. So i have downloaded the tutorial files from here (http://docs.jboss.org/hibernate/core/3. ... html#d0e94) unzipped it and built the executed the mvn compile command.

But i am getting build errors (see below).

I have tried to purge the subprojects but it didnt work. it seem like there is a problem with the org.hibernate:hibernate-core:jar:3.6.2.Final

Any advice??

[INFO] Building Hibernate Getting Started Guide Tutorials 3.6.2.Final
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate hbm.xml Tutorial 3.6.2.Final
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.hibernate:hibernate-core:jar:3.6.2.Final is missing, n
o dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Hibernate Getting Started Guide Tutorials ......... SUCCESS [0.005s]
[INFO] Hibernate hbm.xml Tutorial ........................ FAILURE [0.191s]
[INFO] Hibernate Annotations Tutorial .................... SKIPPED
[INFO] Hibernate JPA Tutorial ............................ SKIPPED
[INFO] Hibernate Envers Tutorial ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.408s
[INFO] Finished at: Sat Apr 02 23:21:47 PDT 2011
[INFO] Final Memory: 3M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hibernate-tutorial-hbm: Could not reso
lve dependencies for project org.hibernate.tutorials:hibernate-tutorial-hbm:jar:
3.6.2.Final: Failure to find org.hibernate:hibernate-core:jar:3.6.2.Final in htt
p://repo1.maven.org/maven2 was cached in the local repository, resolution will n
ot be reattempted until the update interval of central has elapsed or updates ar
e forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... ndencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :hibernate-tutorial-hbm


Top
 Profile  
 
 Post subject: Re: Newbie having trouble with the tutorial
PostPosted: Tue Apr 05, 2011 6:46 pm 
Newbie

Joined: Tue Apr 05, 2011 6:43 pm
Posts: 1
Hi,

I was having the same problem and someone told me to add this in the Hibernate Getting Started Tutorials pom.xml file:


<repositories>
<repository>
<id>repository.jboss.org</id>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
</repository>
</repositories>



under the <modules> tag and it seems to build now for me. Hope this helps you.


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.