Hibernate setup
Install the following Jars as part of a USERLIBRARY. Define this so you can use this
in other workspaces and projects. They should have a way to export this without
having to learn Maven.
From the Hibernate distribution we have
hibernate3.jar ()
hibernate
-
testing.jar
cglib
-
2.2.jar (code generation for dynamic proxies)
hibernate
-
jpa
-
2.0
-
api
-
1.0.0.Final.jar
ehcache
-
1.5.0.jar (under optional, you only need 1 caching provider)
javassist
-
3.12.0.GA.jar (bytecode generation)
c3p0
-
0.9.1.
jar (connection pooling)
antlr
-
2.7.6.jar
commons
-
collections
-
3.1.jar
dom4j.jar
jta
-
1.1.jar
slf4j
-
api
-
1.6.1.jar
Apache Runtime for J2EE libs
Mysql
-
connector
-
java
-
5.1.15
-
bin.jar
You should be able to verify the database tables changing after running the jun
it
tests.
Create a POM with these jars and use this to drive the download and setup.
Test Maven on simple project first.
1)
download the m2eclipse maven plugin.
2)
Create a java project. You can change this to a JPA project later by adding a
project facet.
Project>>Project Facets, the wizard will tell you which facets
you need to add, if there are dependencies
3)
Maven>>Enable Dependencies. This brings up a wizard which will create a
pom.xml for you.
4)
You may
have to add the maven2 repositories.
All of the ma
ven
plugin
information is available from the free online sonatype book. Repositories are
here(
http://www.sonatype.com/books/m2eclipse
-
book/reference/eclipse
-
sect
-
repo
-
view.html#fig
-
repo
-
view_browsing
-
remote
-
repo
).
Verify you have
the current
http://repo1.maven.org/maven2
repository online.
5)
Window>>Show View>>Other
After working through the wizard you should see a list of your local and
global repositories.
If you have current jars which aren’t in the maven2
repository you can add them to
your local repository.
Enter the password to open this PDF file:
File name:
-
File size:
-
Title:
-
Author:
-
Subject:
-
Keywords:
-
Creation Date:
-
Modification Date:
-
Creator:
-
PDF Producer:
-
PDF Version:
-
Page Count:
-
Preparing document for printing…
0%
Σχόλια 0
Συνδεθείτε για να κοινοποιήσετε σχόλιο