• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Hibernate with Maven

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone =)

I'm not sure if I'm in the right forum as this is a question about both hibernate and maven, but hopefully someone here will have a knowledge of the two of them

I'm new to maven and hibernate and I'm currently having a problem trying to use them together! I can't find much with google or on any of their websites that tells me how exactly to create a Hibernate project using Maven..

I'm trying to do the following Hibernate tutorial:
web page

but trying to change it to be built with maven..

I followed the structure shown on the following article:

web page

But the problem is I don't know what else I need to do.. does anyone know how exactly to build a hibernate project using maven and how to compile it, test it, etc? Some step-by-step guidance would be brilliant, or even a link to some good documentation.. I can't find anything that I can follow that links the two together..

Thanks very much for your time,
Karen =)
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Karen, yes this is a maven question and not a Hibernate ORM question, so I am going to move this to another forum.

Well all that we can say for the "Hibernate" part is that Hiberate jars will be some dependencies that you will have in your maven's .pom file.

Since Maven is a pretty big subject, here are some doc links for you

http://www.sonatype.com/book/
http://maven.apache.org/guides/
http://maven.apache.org/guides/
http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html

Here is some basic Hibernate dependencies in a pom file, but where yours most likely will be different is in the <scope> tags, in below the Hibernate jars will not be included in you built jar file.



Good Luck

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic