|
| 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>org.seckill</groupId> |
| 5 | + <artifactId>seckill</artifactId> |
| 6 | + <packaging>war</packaging> |
| 7 | + <version>1.0-SNAPSHOT</version> |
| 8 | + <name>seckill Maven Webapp</name> |
| 9 | + <url>http://maven.apache.org</url> |
| 10 | + <dependencies> |
| 11 | + <!--使用junit4(注解),junit3(编程的方式)--> |
| 12 | + <dependency> |
| 13 | + <groupId>junit</groupId> |
| 14 | + <artifactId>junit</artifactId> |
| 15 | + <version>4.12</version> |
| 16 | + <scope>test</scope> |
| 17 | + </dependency> |
| 18 | + |
| 19 | + <!--补全依赖--> |
| 20 | + <!--1.Java日志:slf4j,log4j,logback,common-logging |
| 21 | + sl4j是规范/接口 |
| 22 | + 日志实现log4j,logback,common-logging |
| 23 | + 使用slf4j+logback |
| 24 | + --> |
| 25 | + <dependency> |
| 26 | + <groupId>org.slf4j</groupId> |
| 27 | + <artifactId>slf4j-api</artifactId> |
| 28 | + <version>1.7.12</version> |
| 29 | + </dependency> |
| 30 | + <dependency> |
| 31 | + <groupId>ch.qos.logback</groupId> |
| 32 | + <artifactId>logback-core</artifactId> |
| 33 | + <version>1.1.2</version> |
| 34 | + </dependency> |
| 35 | + <!--实现slf4j接口并整合--> |
| 36 | + <dependency> |
| 37 | + <groupId>ch.qos.logback</groupId> |
| 38 | + <artifactId>logback-classic</artifactId> |
| 39 | + <version>1.1.2</version> |
| 40 | + </dependency> |
| 41 | + <!--2.数据库相关依赖--> |
| 42 | + <dependency> |
| 43 | + <groupId>mysql</groupId> |
| 44 | + <artifactId>mysql-connector-java</artifactId> |
| 45 | + <version>5.1.38</version> |
| 46 | + <scope>runtime</scope> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>c3p0</groupId> |
| 50 | + <artifactId>c3p0</artifactId> |
| 51 | + <version>0.9.1.2</version> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <!--DAO框架:Mybatis依赖--> |
| 55 | + <dependency> |
| 56 | + <groupId>org.mybatis</groupId> |
| 57 | + <artifactId>mybatis</artifactId> |
| 58 | + <version>3.2.8</version> |
| 59 | + </dependency> |
| 60 | + <!--Mybatis自身实现的Spring整合依赖--> |
| 61 | + <dependency> |
| 62 | + <groupId>org.mybatis</groupId> |
| 63 | + <artifactId>mybatis-spring</artifactId> |
| 64 | + <version>1.2.2</version> |
| 65 | + </dependency> |
| 66 | + |
| 67 | + <!--3.Servlet Web相关依赖--> |
| 68 | + <dependency> |
| 69 | + <groupId>taglibs</groupId> |
| 70 | + <artifactId>standard</artifactId> |
| 71 | + <version>1.1.2</version> |
| 72 | + </dependency> |
| 73 | + <dependency> |
| 74 | + <groupId>jstl</groupId> |
| 75 | + <artifactId>jstl</artifactId> |
| 76 | + <version>1.2</version> |
| 77 | + </dependency> |
| 78 | + <dependency> |
| 79 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 80 | + <artifactId>jackson-databind</artifactId> |
| 81 | + <version>2.8.5</version> |
| 82 | + </dependency> |
| 83 | + <dependency> |
| 84 | + <groupId>javax.servlet</groupId> |
| 85 | + <artifactId>javax.servlet-api</artifactId> |
| 86 | + <version>3.1.0</version> |
| 87 | + </dependency> |
| 88 | + <!--4.Spring依赖--> |
| 89 | + <!--1)Spring核心依赖--> |
| 90 | + <dependency> |
| 91 | + <groupId>org.springframework</groupId> |
| 92 | + <artifactId>spring-core</artifactId> |
| 93 | + <version>4.1.6.RELEASE</version> |
| 94 | + </dependency> |
| 95 | + <dependency> |
| 96 | + <groupId>org.springframework</groupId> |
| 97 | + <artifactId>spring-beans</artifactId> |
| 98 | + <version>4.1.6.RELEASE</version> |
| 99 | + </dependency> |
| 100 | + <dependency> |
| 101 | + <groupId>org.springframework</groupId> |
| 102 | + <artifactId>spring-context</artifactId> |
| 103 | + <version>4.1.6.RELEASE</version> |
| 104 | + </dependency> |
| 105 | + <!--2)Spring dao层依赖--> |
| 106 | + <dependency> |
| 107 | + <groupId>org.springframework</groupId> |
| 108 | + <artifactId>spring-jdbc</artifactId> |
| 109 | + <version>4.1.6.RELEASE</version> |
| 110 | + </dependency> |
| 111 | + <dependency> |
| 112 | + <groupId>org.springframework</groupId> |
| 113 | + <artifactId>spring-tx</artifactId> |
| 114 | + <version>4.1.6.RELEASE</version> |
| 115 | + </dependency> |
| 116 | + <!--3)Spring web层依赖--> |
| 117 | + <dependency> |
| 118 | + <groupId>org.springframework</groupId> |
| 119 | + <artifactId>spring-web</artifactId> |
| 120 | + <version>4.1.6.RELEASE</version> |
| 121 | + </dependency> |
| 122 | + <dependency> |
| 123 | + <groupId>org.springframework</groupId> |
| 124 | + <artifactId>spring-webmvc</artifactId> |
| 125 | + <version>4.1.6.RELEASE</version> |
| 126 | + </dependency> |
| 127 | + <!--4)Spring test相关依赖--> |
| 128 | + <dependency> |
| 129 | + <groupId>org.springframework</groupId> |
| 130 | + <artifactId>spring-test</artifactId> |
| 131 | + <version>4.1.6.RELEASE</version> |
| 132 | + </dependency> |
| 133 | + <!--redis客户端--> |
| 134 | + <dependency> |
| 135 | + <groupId>redis.clients</groupId> |
| 136 | + <artifactId>jedis</artifactId> |
| 137 | + <version>2.9.0</version> |
| 138 | + </dependency> |
| 139 | + <!--protostuff依赖--> |
| 140 | + <dependency> |
| 141 | + <groupId>com.dyuproject.protostuff</groupId> |
| 142 | + <artifactId>protostuff-core</artifactId> |
| 143 | + <version>1.0.8</version> |
| 144 | + </dependency> |
| 145 | + <dependency> |
| 146 | + <groupId>com.dyuproject.protostuff</groupId> |
| 147 | + <artifactId>protostuff-runtime</artifactId> |
| 148 | + <version>1.0.8</version> |
| 149 | + </dependency> |
| 150 | + |
| 151 | + <dependency> |
| 152 | + <groupId>commons-collections</groupId> |
| 153 | + <artifactId>commons-collections</artifactId> |
| 154 | + <version>3.2.1</version> |
| 155 | + </dependency> |
| 156 | + |
| 157 | + </dependencies> |
| 158 | + |
| 159 | + |
| 160 | + <build> |
| 161 | + <finalName>seckill</finalName> |
| 162 | + </build> |
| 163 | +</project> |
0 commit comments