• hibernate4+spring4+struts2的Maven中的pom.xml文件的配置


      1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      3     <modelVersion>4.0.0</modelVersion>
      4     <groupId>com.wzh.web</groupId>
      5     <artifactId>blog</artifactId>
      6     <packaging>war</packaging>
      7     <version>0.0.1-SNAPSHOT</version>
      8     <name>blog Maven Webapp</name>
      9     <url>http://maven.apache.org</url>
     10     <properties>
     11         <org.springframework.version>4.1.3.RELEASE</org.springframework.version>
     12         <struts2.version>2.3.1</struts2.version>
     13         <log4j.version>2.0</log4j.version>
     14         <mysql.jdbc.version>5.1.21</mysql.jdbc.version>
     15         <hibernate.version>4.3.1.Final</hibernate.version>
     16         <commons.fileupload.version>1.2.1</commons.fileupload.version>
     17         <javassist.version>3.12.1.GA</javassist.version>
     18         <cxf.version>3.0.2</cxf.version>
     19 
     20     </properties>
     21 
     22     <dependencies>
     23         <dependency>
     24             <groupId>junit</groupId>
     25             <artifactId>junit</artifactId>
     26             <version>4.11</version>
     27             <scope>test</scope>
     28         </dependency>
     29         <!-- Jackson -->
     30         <dependency>
     31             <groupId>org.codehaus.jackson</groupId>
     32             <artifactId>jackson-mapper-asl</artifactId>
     33             <version>1.9.13</version>
     34         </dependency>
     35  
     36         <!--utils-->
     37         <dependency>
     38             <groupId>com.google.guava</groupId>
     39             <artifactId>guava</artifactId>
     40             <version>15.0-rc1</version>
     41         </dependency>
     42         
     43         <!-- servlet3 -->
     44         <dependency>
     45             <groupId>javax.servlet</groupId>
     46             <artifactId>javax.servlet-api</artifactId>
     47             <version>3.0.1</version>
     48             <scope>provided</scope>
     49         </dependency>
     50         
     51         <!-- cxf -->
     52         <dependency>
     53             <groupId>org.apache.cxf</groupId>
     54             <artifactId>cxf-core</artifactId>
     55             <version>${cxf.version}</version>
     56         </dependency>
     57 
     58         <!-- 读取字节码包 -->
     59         <dependency>
     60             <groupId>javassist</groupId>
     61             <artifactId>javassist</artifactId>
     62             <version>${javassist.version}</version>
     63         </dependency>
     64 
     65         <!-- commons配置 -->
     66         <dependency>
     67             <groupId>commons-fileupload</groupId>
     68             <artifactId>commons-fileupload</artifactId>
     69             <version>${commons.fileupload.version}</version>
     70         </dependency>
     71         <dependency>
     72             <groupId>commons-io</groupId>
     73             <artifactId>commons-io</artifactId>
     74             <version>1.4</version>
     75         </dependency>
     76         <dependency>
     77             <groupId>commons-lang</groupId>
     78             <artifactId>commons-lang</artifactId>
     79             <version>2.6</version>
     80         </dependency>
     81         <dependency>
     82             <groupId>commons-collections</groupId>
     83             <artifactId>commons-collections</artifactId>
     84             <version>3.2.1</version>
     85         </dependency>
     86         <dependency>
     87             <groupId>commons-beanutils</groupId>
     88             <artifactId>commons-beanutils</artifactId>
     89             <version>1.8.3</version>
     90         </dependency>
     91         <dependency>
     92             <groupId>commons-dbutils</groupId>
     93             <artifactId>commons-dbutils</artifactId>
     94             <version>1.5</version>
     95         </dependency>
     96         <dependency>
     97             <groupId>commons-codec</groupId>
     98             <artifactId>commons-codec</artifactId>
     99             <version>1.8</version>
    100         </dependency>
    101         <dependency>
    102             <groupId>commons-configuration</groupId>
    103             <artifactId>commons-configuration</artifactId>
    104             <version>1.10</version>
    105         </dependency>
    106 
    107         <!-- aspectj -->
    108         <dependency>
    109             <groupId>org.aspectj</groupId>
    110             <artifactId>aspectjrt</artifactId>
    111             <version>1.8.4</version>
    112         </dependency>
    113         <dependency>
    114             <groupId>org.aspectj</groupId>
    115             <artifactId>aspectjweaver</artifactId>
    116             <version>1.8.4</version>
    117         </dependency>
    118         <dependency>
    119             <groupId>org.aspectj</groupId>
    120             <artifactId>aspectjlib</artifactId>
    121             <version>1.6.2</version>
    122         </dependency>
    123 
    124         <!-- quartz -->
    125         <dependency>
    126             <groupId>org.quartz-scheduler</groupId>
    127             <artifactId>quartz</artifactId>
    128             <version>2.2.0</version>
    129         </dependency>
    130 
    131         <!-- mysql的依赖 -->
    132         <dependency>
    133             <groupId>mysql</groupId>
    134             <artifactId>mysql-connector-java</artifactId>
    135             <version>${mysql.jdbc.version}</version>
    136         </dependency>
    137 
    138         <!-- c3p0 -->
    139         <dependency>
    140             <groupId>c3p0</groupId>
    141             <artifactId>c3p0</artifactId>
    142             <version>0.9.1.2</version>
    143         </dependency>
    144 
    145         <!-- slf4j -->
    146         <dependency>
    147             <groupId>org.slf4j</groupId>
    148             <artifactId>slf4j-log4j12</artifactId>
    149             <version>1.7.2</version>
    150         </dependency>
    151         
    152         <!-- log4j的依赖 -->
    153         <dependency>
    154             <groupId>org.apache.logging.log4j</groupId>
    155             <artifactId>log4j-api</artifactId>
    156             <version>${log4j.version}</version>
    157         </dependency>
    158         <dependency>
    159             <groupId>org.apache.logging.log4j</groupId>
    160             <artifactId>log4j-core</artifactId>
    161             <version>${log4j.version}</version>
    162         </dependency>
    163 
    164         <!-- Struts2-core 依赖 -->
    165         <dependency>
    166             <groupId>org.apache.struts</groupId>
    167             <artifactId>struts2-core</artifactId>
    168             <version>${struts2.version}</version>
    169 
    170         </dependency>
    171         
    172         <!-- hiberante 4 -->
    173         <dependency>
    174             <groupId>org.hibernate</groupId>
    175             <artifactId>hibernate-core</artifactId>
    176             <version>${hibernate.version}</version>
    177         </dependency>
    178         <dependency>
    179             <groupId>org.hibernate</groupId>
    180             <artifactId>hibernate-validator</artifactId>
    181             <version>${hibernate.version}</version>
    182         </dependency>
    183         <dependency>
    184             <groupId>org.hibernate</groupId>
    185             <artifactId>hibernate-entitymanager</artifactId>
    186             <version>${hibernate.version}</version>
    187         </dependency>
    188         <dependency>
    189             <groupId>javax.validation</groupId>
    190             <artifactId>validation-api</artifactId>
    191             <version>1.0.0.GA</version>
    192             <scope>provided</scope>
    193         </dependency>
    194         
    195 
    196         <!-- Spring MVC框架 -->
    197         <dependency>
    198             <groupId>org.springframework</groupId>
    199             <artifactId>spring-core</artifactId>
    200             <version>${org.springframework.version}</version>
    201         </dependency>
    202         <dependency>
    203             <groupId>org.springframework</groupId>
    204             <artifactId>spring-expression</artifactId>
    205             <version>${org.springframework.version}</version>
    206         </dependency>
    207 
    208         <!-- Bean Factory and JavaBeans utilities (depends on spring-core) Define 
    209             this if you use Spring Bean APIs (org.springframework.beans.*) -->
    210         <dependency>
    211             <groupId>org.springframework</groupId>
    212             <artifactId>spring-beans</artifactId>
    213             <version>${org.springframework.version}</version>
    214         </dependency>
    215 
    216         <!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core, 
    217             spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->
    218         <dependency>
    219             <groupId>org.springframework</groupId>
    220             <artifactId>spring-aop</artifactId>
    221             <version>${org.springframework.version}</version>
    222         </dependency>
    223         <!-- Application Context (depends on spring-core, spring-expression, spring-aop, 
    224             spring-beans) This is the central artifact for Spring's Dependency Injection 
    225             Container and is generally always defined -->
    226         <dependency>
    227             <groupId>org.springframework</groupId>
    228             <artifactId>spring-context</artifactId>
    229             <version>${org.springframework.version}</version>
    230         </dependency>
    231 
    232         <!-- Various Application Context utilities, including EhCache, JavaMail, 
    233             Quartz, and Freemarker integration Define this if you need any of these integrations -->
    234         <dependency>
    235             <groupId>org.springframework</groupId>
    236             <artifactId>spring-context-support</artifactId>
    237             <version>${org.springframework.version}</version>
    238         </dependency>
    239 
    240         <!-- Transaction Management Abstraction (depends on spring-core, spring-beans, 
    241             spring-aop, spring-context) Define this if you use Spring Transactions or 
    242             DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->
    243         <dependency>
    244             <groupId>org.springframework</groupId>
    245             <artifactId>spring-tx</artifactId>
    246             <version>${org.springframework.version}</version>
    247         </dependency>
    248         <!-- JDBC Data Access Library (depends on spring-core, spring-beans, spring-context, 
    249             spring-tx) Define this if you use Spring's JdbcTemplate API (org.springframework.jdbc.*) -->
    250         <dependency>
    251             <groupId>org.springframework</groupId>
    252             <artifactId>spring-jdbc</artifactId>
    253             <version>${org.springframework.version}</version>
    254         </dependency>
    255 
    256         <!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, 
    257             and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx) 
    258             Define this if you need ORM (org.springframework.orm.*) -->
    259         <dependency>
    260             <groupId>org.springframework</groupId>
    261             <artifactId>spring-orm</artifactId>
    262             <version>${org.springframework.version}</version>
    263         </dependency>
    264 
    265         <!-- Object-to-XML Mapping (OXM) abstraction and integration with JAXB, 
    266             JiBX, Castor, XStream, and XML Beans. (depends on spring-core, spring-beans, 
    267             spring-context) Define this if you need OXM (org.springframework.oxm.*) -->
    268         <dependency>
    269             <groupId>org.springframework</groupId>
    270             <artifactId>spring-oxm</artifactId>
    271             <version>${org.springframework.version}</version>
    272         </dependency>
    273         <!-- Web application development utilities applicable to both Servlet and 
    274             Portlet Environments (depends on spring-core, spring-beans, spring-context) 
    275             Define this if you use Spring MVC, or wish to use Struts, JSF, or another 
    276             web framework with Spring (org.springframework.web.*) -->
    277         <dependency>
    278             <groupId>org.springframework</groupId>
    279             <artifactId>spring-web</artifactId>
    280             <version>${org.springframework.version}</version>
    281         </dependency>
    282 
    283         <!-- Spring MVC for Servlet Environments (depends on spring-core, spring-beans, 
    284             spring-context, spring-web) Define this if you use Spring MVC with a Servlet 
    285             Container such as Apache Tomcat (org.springframework.web.servlet.*) -->
    286         <dependency>
    287             <groupId>org.springframework</groupId>
    288             <artifactId>spring-webmvc</artifactId>
    289             <version>${org.springframework.version}</version>
    290         </dependency>
    291         <!-- Spring MVC for Portlet Environments (depends on spring-core, spring-beans, 
    292             spring-context, spring-web) Define this if you use Spring MVC with a Portlet 
    293             Container (org.springframework.web.portlet.*) -->
    294         <dependency>
    295             <groupId>org.springframework</groupId>
    296             <artifactId>spring-webmvc-portlet</artifactId>
    297             <version>${org.springframework.version}</version>
    298         </dependency>
    299 
    300         <!-- Support for testing Spring applications with tools such as JUnit and 
    301             TestNG This artifact is generally always defined with a 'test' scope for 
    302             the integration testing framework and unit testing stubs -->
    303         <dependency>
    304             <groupId>org.springframework</groupId>
    305             <artifactId>spring-test</artifactId>
    306             <version>${org.springframework.version}</version>
    307             <scope>test</scope>
    308         </dependency>
    309 
    310     </dependencies>
    311     <build>
    312         <finalName>blog</finalName>
    313     </build>
    314 </project>

    以上是在网络上收集整理出来的,使用的是maven默认仓库,经Myeclipse2013测试可以下载。

  • 相关阅读:
    正确解读free -m
    linux命令总结之traceroute命令
    OSI七层模型详解
    Linux运维七:网络基础
    python contextlib 上下文管理器
    Django扩展自定义manage命令
    Elasticsearch分片、副本与路由(shard replica routing)
    EsRejectedExecutionException排错与线程池类型
    python重试(指数退避算法)
    Redis实现分布式锁
  • 原文地址:https://www.cnblogs.com/wangzhihua/p/4380392.html
Copyright © 2020-2023  润新知