Enable EhCache support for Hibernate Core Module dependencies using cglib
Now, lets add support for second level caching with EhCache: org.hibernate hibernate-core 3.3.1.GA org.hibernate hibernate-cglib-repack 2.1_3 org.slf4j slf4j-log4j12 1.5.2 log4j log4j 1.2.14 org.hibernate hibernate-ehcache 3.3.1.GA As we stated above, we said that the hibernate-ehcache module defines the integration with EhCache. It also defines a dependency on EhCache itself, which maven pulls into our dependencies here transitively. See the maven documentation for information about how this all works. The point is simply that we just need to depend on the hibernate-ehcache module and the other deps need to use EhCache are handled for us.