What are the Maven dependencies to use hibernate, hibernate annotations, and ehcache?

前端 未结 3 1275
旧时难觅i
旧时难觅i 2021-01-30 23:46

I would like to update my Maven pom.xml with the latest hibernate, hibernate-annotations, and ehcache dependencies.

I read the hibernate download page and the ehcache do

3条回答
  •  时光说笑
    2021-01-31 00:21

    You can go by this pom.xml if you are integrating Spring 3 with hibernate 3

    
        3.0.5.RELEASE
    
    
    
        
        
            org.springframework
            spring-core
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-expression
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-beans
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-aop
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-context
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-context-support
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-tx
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-jdbc
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-orm
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-oxm
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-web
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-webmvc
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-webmvc-portlet
            ${org.springframework.version}
        
    
        
        
            org.springframework
            spring-test
            ${org.springframework.version}
            test
        
    
    
        
        
            org.hibernate
            hibernate-entitymanager
            3.6.7.Final
        
        
            org.hibernate
            hibernate-validator
            4.3.0.Final
        
        
            org.hibernate
            hibernate-commons-annotations
            3.3.0.ga
        
        
            org.hibernate
            hibernate-annotations
            3.3.1.GA
        
        
            org.hibernate
            hibernate-core
            3.3.2.GA
        
        
        
            net.sf.ehcache
            ehcache-core
            2.2.0
        
        
            antlr
            antlr
            2.7.7
        
    
    
        
    
        
            taglibs
            standard
            1.1.2
        
        
            javax.servlet
            jstl
            1.1.2
        
        
            commons-dbcp
            commons-dbcp
            20030825.184428
        
        
            commons-pool
            commons-pool
            20030825.183949
        
    
        
        
            log4j
            log4j
            1.2.14
            jar
            
                
                    javax.mail
                    mail
                
            
        
        
            org.slf4j
            slf4j-log4j12
            1.5.6
        
    
    
        
            javax.servlet
            servlet-api
            2.4
            provided
        
        
            javax.servlet.jsp
            jsp-api
            2.1
            provided
        
    
    

    And if you want different versions of hibernate you can check here

提交回复
热议问题