常用的MAVEN库配置


<!-- spring需要的jar包 -->  

<dependency>  

    <groupId>org.springframework</groupId>  

    <artifactId>spring-context</artifactId>  

    <version>3.2.4.RELEASE</version>  

    <type>jar</type>  

</dependency>  


<dependency>  

    <groupId>org.springframework</groupId>  

    <artifactId>spring-core</artifactId>  

    <version>3.2.4.RELEASE</version>  

    <type>jar</type>  

</dependency>  

  1.   

  2.         <dependency>  

  3.             <groupId>org.springframework</groupId>  

  4.             <artifactId>spring-beans</artifactId>  

  5.             <version>3.2.4.RELEASE</version>  

  6.             <type>jar</type>  

  7.         </dependency>  

  8.   

  9.         <dependency>  

  10.             <groupId>org.springframework</groupId>  

  11.             <artifactId>spring-webmvc</artifactId>  

  12.             <version>3.2.4.RELEASE</version>  

  13.             <type>jar</type>  

  14.         </dependency>  

  15.   

  16.         <dependency>  

  17.             <groupId>org.springframework</groupId>  

  18.             <artifactId>spring-orm</artifactId>  

  19.             <version>3.2.4.RELEASE</version>  

  20.             <type>jar</type>  

  21.         </dependency>



  1. <!-- hibernate需要的jar包 -->  

  2.         <dependency>  

  3.             <groupId>org.hibernate</groupId>  

  4.             <artifactId>hibernate-validator</artifactId>  

  5.             <version>5.1.3.Final</version>  

  6.         </dependency>  

  7.           

  8.         <dependency>  

  9.             <groupId>org.hibernate</groupId>  

  10.             <artifactId>hibernate-core</artifactId>  

  11.             <version>4.2.16.Final</version>  

  12.             <type>jar</type>  

  13.         </dependency>  

  14.           

  15.         <!-- hibernate ehcache需要的jar包 -->  

  16.         <dependency>  

  17.             <groupId>org.hibernate</groupId>  

  18.             <artifactId>hibernate-ehcache</artifactId>  

  19.             <version>4.3.8.Final</version>  

  20.         </dependency>  

  21.   

  22.         <!-- 连接MySQL数据库需要的jar包 -->  

  23.         <dependency>  

  24.             <groupId>mysql</groupId>  

  25.             <artifactId>mysql-connector-java</artifactId>  

  26.             <version>5.1.34</version>  

  27.         </dependency>  

  28.           

  29.         <!-- dbcp连接池需要的jar包 -->  

  30.         <dependency>  

  31.             <groupId>commons-dbcp</groupId>  

  32.             <artifactId>commons-dbcp</artifactId>  

  33.             <version>1.4</version>  

  34.         </dependency>  

  35.           

  36.         <!-- jstl需要的jar包 -->  

  37.         <dependency>  

  38.             <groupId>jstl</groupId>  

  39.             <artifactId>jstl</artifactId>  

  40.             <version>1.2</version>  

  41.         </dependency>  

  42.   

  43.         <!-- log4j需要的jar包 -->  

  44.         <dependency>  

  45.             <groupId>log4j</groupId>  

  46.             <artifactId>log4j</artifactId>  

  47.             <version>1.2.17</version>  

  48.         </dependency>  

  49.   

  50.         <!-- 文件上传需要的jar包 -->  

  51.         <dependency>  

  52.             <groupId>commons-fileupload</groupId>  

  53.             <artifactId>commons-fileupload</artifactId>  

  54.             <version>1.2.1</version>  

  55.         </dependency>  

  56.   

  57.         <dependency>  

  58.             <groupId>commons-io</groupId>  

  59.             <artifactId>commons-io</artifactId>  

  60.             <version>1.4</version>  

  61.         </dependency>  

  62.           

  63.         <!-- 单元测试需要的jar包 -->  

  64.         <dependency>  

  65.             <groupId>junit</groupId>  

  66.             <artifactId>junit</artifactId>  

  67.             <version>3.8.1</version>  

  68.             <scope>test</scope>  

  69.         </dependency>  

  70.           

  71.         <dependency>  

  72.             <groupId>javax.servlet.jsp</groupId>  

  73.             <artifactId>jsp-api</artifactId>  

  74.             <version>2.2</version>  

  75.             <type>jar</type>  

  76.         </dependency>  

  77.   

  78.         <dependency>  

  79.             <groupId>javax.validation</groupId>  

  80.             <artifactId>validation-api</artifactId>  

  81.             <version>1.1.0.Final</version>  

  82.         </dependency>  

  83.           

  84.         <dependency>  

  85.             <groupId>org.apache.ant</groupId>  

  86.             <artifactId>ant</artifactId>  

  87.             <version>1.7.0</version>  

  88.         </dependency>


你可能感兴趣的:(maven)