views:

74

answers:

4

I'm trying to use Hibernate for the first time, and early on in the getting started guide, it makes reference to Maven. If I'm not mistaken, Maven appears to be a build tool. However, I've been using Eclipse to build my project up to this point.

Is there a way for me to use Hibernate without needing Maven? Can I just do what I need through Eclipse? Does anyone have a link to a resource that can show me how to do this?

+2  A: 

You do not need maven to use Hibernate. Maven offers the ease of having a single dependency to include all the jars necessary. Without maven you will have to download and import each jar that hibernate relies on. This would be a manual process.

Hibernate does not rely on maven as it does say javax.sql.

John V.
Also you *can* use maven inside eclipse. Checkout the m2eclipse plugin if you are interested.
Chris Nava
@Chris Nava, youre right and it works pretty good too. Also look at the maven-eclipse-plugin which builds your .project nicely.
John V.
+2  A: 

No, of course not. I never use Maven - ever, for anything. Keep using Eclipse to build your projects.

I find that it's hard enough to learn one new thing at a time. If you're just learning Hibernate, why complicate your life with Maven?

duffymo
+1  A: 

You don't need Maven to use Hibernate. Without Maven, you'll just have to download and add the jar dependencies to the project manually, which isn't hard. And you can use whichever build process you use.

Samit G.