Best way to give Maven access to Spring is via Spring’s bundle repositories. I find that the easiest way to do this is to include the
For Hibernate add following dependency.
repository
entries in my settings.xml file, but you can also put them in the POM file for your project or even add them to Nexus as proxy repositories if you are in such an environment. The entries should look like this:
com.springsource.repository.bundles.release
SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases
http://repository.springsource.com/maven/bundles/release
com.springsource.repository.bundles.external
SpringSource Enterprise Bundle Repository - External Bundle Releases
http://repository.springsource.com/maven/bundles/external
With these entries in place Maven should now be able to import Spring 3.0 binaries and certain other useful bundles.---------------------------------------------------------
For Hibernate add following dependency.
<dependency>
<groupId>org.hibernategroupId>
<artifactId>hibernate-c3p0artifactId>
<version>3.6.0.CR2version>
dependency>
---------------------------------------------------------
For Rest Framework Jersey add following
Dependency
com.sun.jersey
jersey-client
1.8
Repository (if you do not have this)
maven2-repository.java.net
Java.net Repository for Maven
http://download.java.net/maven/2/
default
---------------------------------------------------------
No comments:
Post a Comment