maven struts2 spring3 hibernate 4 pom.xml配置

 

 


    4.0.0
    com.rkx
    webtest
    war
    0.0.1-SNAPSHOT
    webtest Maven Webapp
    http://maven.apache.org
    
        UTF-8
    
    
        
            JBoss
            JBoss Repsitory
            default
            http://repository.jboss.org/maven2
        
        
            springsource-repo
            SpringSource Repository
            http://repo.springsource.org/release
        
    
    
        
            junit
            junit
            4.10
        
        
            org.hibernate
            hibernate-entitymanager
            4.1.0.Final
        
        
            org.springframework
            spring-context
            3.1.1.RELEASE
        
        
            org.springframework
            spring-web
            3.1.1.RELEASE
        
        
            org.springframework.integration
            spring-integration-mail
            2.1.0.RELEASE
        
 
        
            org.springframework
            spring-orm
            3.1.1.RELEASE
        
        
            org.springframework
            spring-jdbc
            3.1.1.RELEASE
        
        
            org.springframework
            spring-dao
            2.0.8
        
 
        
            org.apache.struts
            struts2-core
            2.3.1.2
        
        
            org.seleniumhq.selenium
            selenium-java
            2.20.0
        
        
            
            org.jsoup
            jsoup
            1.6.2
        
 
        
        
            com.google.code.gson
            gson
            2.1
            compile
        
        
            org.quartz-scheduler
            quartz
            2.1.2
        
        
            org.tuckey
            urlrewrite
            2.5.2
        
        
            commons-lang
            commons-lang
            2.6
        
 
        
            commons-httpclient
            commons-httpclient
            3.1
        
        
            javax.servlet
            servlet-api
            2.5
        
        
            net.sf.ehcache
            ehcache-core
            2.5.1
        
        
            net.sf.ehcache
            ehcache-web
            2.0.4
        
        
            javax.mail
            mail
            1.4.5
        
        
            mysql
            mysql-connector-java
            5.1.18
        
        
            org.aspectj
            aspectjrt
            1.6.12
        
 
        
            jstl
            jstl
            1.2
        
        
            javaee
            javaee-api
            5
        
 
 
    
    
        webtest
        
            
                org.apache.maven.plugins
                maven-resources-plugin
                
                    UTF-8
                
            
            
                maven-compiler-plugin
                
                    UTF-8
                    
                        
                        ${java.home}\lib\rt.jar
                    
                
            
 
        
    

 

 以上是基本配置,可能有些包不是需要的,比如quartz,ehcache,jsoup。根据需求改吧。

需要什么包可以在   http://mvnrepository.com/   里search,方便
记下来,以后用下

其实还是grails好,集成maven,不用去管理jar包依赖问题。也很少会出现jar冲突问题。

你可能感兴趣的:(maven)