Authored by chunhua

add service model

Showing 1 changed file with 561 additions and 524 deletions
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.yoho</groupId>  
5 - <artifactId>parent</artifactId>  
6 - <packaging>pom</packaging>  
7 - <version>1.0.0-SNAPSHOT</version>  
8 - <name>parent</name>  
9 - <url>http://maven.apache.org</url>  
10 - <properties>  
11 - <java.version>1.8</java.version>  
12 - <java.encoding>UTF-8</java.encoding>  
13 - <!-- spring版本号 -->  
14 - <spring.version>4.2.2.RELEASE</spring.version>  
15 - <!-- mybatis版本号 -->  
16 - <mybatis.version>3.2.6</mybatis.version>  
17 - <!-- log4j日志文件管理包版本 -->  
18 - <slf4j.version>1.7.7</slf4j.version>  
19 - <logback.version>1.0.13</logback.version>  
20 - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>  
21 - <yoho.version>1.0.0-SNAPSHOT</yoho.version>  
22 - </properties>  
23 - <dependencyManagement>  
24 - <dependencies>  
25 - <!-- yoho 公共包 -->  
26 - <dependency>  
27 - <groupId>com.yoho.common</groupId>  
28 - <artifactId>error-code</artifactId>  
29 - <version>${yoho.version}</version>  
30 - </dependency>  
31 - <dependency>  
32 - <groupId>com.yoho.core</groupId>  
33 - <artifactId>yoho-core-common</artifactId>  
34 - <version>${yoho.version}</version>  
35 - </dependency>  
36 -  
37 -  
38 - <dependency>  
39 - <groupId>com.yoho.core</groupId>  
40 - <artifactId>yoho-core-dal</artifactId>  
41 - <version>${yoho.version}</version>  
42 - </dependency>  
43 -  
44 - <dependency>  
45 - <groupId>com.yoho.core</groupId>  
46 - <artifactId>yoho-core-rest</artifactId>  
47 - <version>${yoho.version}</version>  
48 - </dependency>  
49 -  
50 - <dependency>  
51 - <groupId>com.yoho.core</groupId>  
52 - <artifactId>yoho-core-message</artifactId>  
53 - <version>${yoho.version}</version>  
54 - </dependency>  
55 -  
56 -  
57 - <dependency>  
58 - <groupId>org.aspectj</groupId>  
59 - <artifactId>aspectjweaver</artifactId>  
60 - <version>1.8.7</version>  
61 - </dependency>  
62 -  
63 -  
64 -  
65 -  
66 - <dependency>  
67 - <groupId>javax</groupId>  
68 - <artifactId>javaee-api</artifactId>  
69 - <version>7.0</version>  
70 - <scope>provided</scope>  
71 - </dependency>  
72 - <dependency>  
73 - <groupId>junit</groupId>  
74 - <artifactId>junit</artifactId>  
75 - <version>4.11</version>  
76 - <scope>test</scope>  
77 - </dependency>  
78 - <!-- swagger -->  
79 - <dependency>  
80 - <groupId>com.mangofactory</groupId>  
81 - <artifactId>swagger-springmvc</artifactId>  
82 - <version>1.0.2</version>  
83 - </dependency>  
84 - <!-- servlet -->  
85 - <dependency>  
86 - <groupId>javax.servlet</groupId>  
87 - <artifactId>servlet-api</artifactId>  
88 - <version>3.0-alpha-1</version>  
89 - <scope>provided</scope>  
90 - </dependency>  
91 - <!-- spring核心包 -->  
92 - <dependency>  
93 - <groupId>org.springframework</groupId>  
94 - <artifactId>spring-core</artifactId>  
95 - <version>${spring.version}</version>  
96 - </dependency>  
97 - <dependency>  
98 - <groupId>org.springframework</groupId>  
99 - <artifactId>spring-beans</artifactId>  
100 - <version>${spring.version}</version>  
101 - </dependency>  
102 - <dependency>  
103 - <groupId>org.springframework</groupId>  
104 - <artifactId>spring-context</artifactId>  
105 - <version>${spring.version}</version>  
106 - </dependency>  
107 - <dependency>  
108 - <groupId>org.springframework</groupId>  
109 - <artifactId>spring-web</artifactId>  
110 - <version>${spring.version}</version>  
111 - </dependency>  
112 - <dependency>  
113 - <groupId>org.springframework</groupId>  
114 - <artifactId>spring-oxm</artifactId>  
115 - <version>${spring.version}</version>  
116 - </dependency>  
117 - <dependency>  
118 - <groupId>org.springframework</groupId>  
119 - <artifactId>spring-tx</artifactId>  
120 - <version>${spring.version}</version>  
121 - </dependency>  
122 - <dependency>  
123 - <groupId>org.springframework</groupId>  
124 - <artifactId>spring-jdbc</artifactId>  
125 - <version>${spring.version}</version>  
126 - </dependency>  
127 - <dependency>  
128 - <groupId>org.springframework</groupId>  
129 - <artifactId>spring-webmvc</artifactId>  
130 - <version>${spring.version}</version>  
131 - </dependency>  
132 - <dependency>  
133 - <groupId>org.springframework</groupId>  
134 - <artifactId>spring-aop</artifactId>  
135 - <version>${spring.version}</version>  
136 - </dependency>  
137 - <dependency>  
138 - <groupId>org.springframework</groupId>  
139 - <artifactId>spring-context-support</artifactId>  
140 - <version>${spring.version}</version>  
141 - </dependency>  
142 - <dependency>  
143 - <groupId>org.springframework</groupId>  
144 - <artifactId>spring-test</artifactId>  
145 - <version>${spring.version}</version>  
146 - </dependency>  
147 - <dependency>  
148 - <groupId>org.springframework.amqp</groupId>  
149 - <artifactId>spring-rabbit</artifactId>  
150 - <version>1.5.1.RELEASE</version>  
151 - </dependency>  
152 - <!-- mybatis核心包 -->  
153 - <dependency>  
154 - <groupId>org.mybatis</groupId>  
155 - <artifactId>mybatis</artifactId>  
156 - <version>${mybatis.version}</version>  
157 - </dependency>  
158 - <!-- mybatis/spring包 -->  
159 - <dependency>  
160 - <groupId>org.mybatis</groupId>  
161 - <artifactId>mybatis-spring</artifactId>  
162 - <version>1.2.2</version>  
163 - </dependency>  
164 - <!-- 导入Mysql数据库链接jar包 -->  
165 - <dependency>  
166 - <groupId>mysql</groupId>  
167 - <artifactId>mysql-connector-java</artifactId>  
168 - <version>5.1.30</version>  
169 - </dependency>  
170 - <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 -->  
171 - <dependency>  
172 - <groupId>commons-dbcp</groupId>  
173 - <artifactId>commons-dbcp</artifactId>  
174 - <version>1.4</version>  
175 - </dependency>  
176 - <dependency>  
177 - <groupId>org.apache.httpcomponents</groupId>  
178 - <artifactId>httpclient</artifactId>  
179 - <version>4.5.1</version>  
180 - </dependency>  
181 - <dependency>  
182 - <groupId>com.google.guava</groupId>  
183 - <artifactId>guava</artifactId>  
184 - <version>18.0</version>  
185 - </dependency>  
186 -  
187 - <!-- spring memcached-->  
188 - <dependency>  
189 - <groupId>net.spy</groupId>  
190 - <artifactId>spymemcached</artifactId>  
191 - <version>2.12.0</version>  
192 - <exclusions>  
193 - <exclusion>  
194 - <groupId>org.springframework</groupId>  
195 - <artifactId>spring-beans</artifactId>  
196 - </exclusion>  
197 - <exclusion>  
198 - <groupId>org.springframework</groupId>  
199 - <artifactId>spring-aop</artifactId>  
200 - </exclusion>  
201 - <exclusion>  
202 - <groupId>org.springframework</groupId>  
203 - <artifactId>spring-context</artifactId>  
204 - </exclusion>  
205 - <exclusion>  
206 - <groupId>org.springframework</groupId>  
207 - <artifactId>spring-core</artifactId>  
208 - </exclusion>  
209 - </exclusions>  
210 - </dependency>  
211 -  
212 - <dependency>  
213 - <groupId>com.google.code.simple-spring-memcached</groupId>  
214 - <artifactId>spring-cache</artifactId>  
215 - <version>3.6.0</version>  
216 - <exclusions>  
217 - <exclusion>  
218 - <groupId>org.springframework</groupId>  
219 - <artifactId>spring-beans</artifactId>  
220 - </exclusion>  
221 - <exclusion>  
222 - <groupId>org.springframework</groupId>  
223 - <artifactId>spring-aop</artifactId>  
224 - </exclusion>  
225 - <exclusion>  
226 - <groupId>org.springframework</groupId>  
227 - <artifactId>spring-context</artifactId>  
228 - </exclusion>  
229 - <exclusion>  
230 - <groupId>org.springframework</groupId>  
231 - <artifactId>spring-core</artifactId>  
232 - </exclusion>  
233 - </exclusions>  
234 - </dependency> 2 +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4 + <modelVersion>4.0.0</modelVersion>
  5 + <groupId>com.yoho</groupId>
  6 + <artifactId>parent</artifactId>
  7 + <packaging>pom</packaging>
  8 + <version>1.0.0-SNAPSHOT</version>
  9 + <name>parent</name>
  10 + <url>http://maven.apache.org</url>
  11 + <properties>
  12 + <java.version>1.8</java.version>
  13 + <java.encoding>UTF-8</java.encoding>
  14 + <!-- spring版本号 -->
  15 + <spring.version>4.2.2.RELEASE</spring.version>
  16 + <!-- mybatis版本号 -->
  17 + <mybatis.version>3.2.6</mybatis.version>
  18 + <!-- log4j日志文件管理包版本 -->
  19 + <slf4j.version>1.7.7</slf4j.version>
  20 + <logback.version>1.0.13</logback.version>
  21 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22 + <yoho.version>1.0.0-SNAPSHOT</yoho.version>
  23 + </properties>
  24 + <dependencyManagement>
  25 + <dependencies>
  26 + <!-- ************************ yoho ******************************公共包 -->
  27 + <dependency>
  28 + <groupId>com.yoho.common</groupId>
  29 + <artifactId>error-code</artifactId>
  30 + <version>${yoho.version}</version>
  31 + </dependency>
235 32
  33 + <!-- core -->
  34 + <dependency>
  35 + <groupId>com.yoho.core</groupId>
  36 + <artifactId>yoho-core-common</artifactId>
  37 + <version>${yoho.version}</version>
  38 + </dependency>
  39 + <dependency>
  40 + <groupId>com.yoho.core</groupId>
  41 + <artifactId>yoho-core-dal</artifactId>
  42 + <version>${yoho.version}</version>
  43 + </dependency>
  44 + <dependency>
  45 + <groupId>com.yoho.core</groupId>
  46 + <artifactId>yoho-core-rest</artifactId>
  47 + <version>${yoho.version}</version>
  48 + </dependency>
  49 + <dependency>
  50 + <groupId>com.yoho.core</groupId>
  51 + <artifactId>yoho-core-message</artifactId>
  52 + <version>${yoho.version}</version>
  53 + </dependency>
236 54
237 - <dependency>  
238 - <groupId>com.google.code.simple-spring-memcached</groupId>  
239 - <artifactId>spymemcached-provider</artifactId>  
240 - <version>3.6.0</version>  
241 - </dependency> 55 + <!-- model -->
  56 + <dependency>
  57 + <groupId>com.yoho.service.model</groupId>
  58 + <artifactId>sns-service-model</artifactId>
  59 + <version>${yoho.version}</version>
  60 + </dependency>
  61 + <dependency>
  62 + <groupId>com.yoho.service.model</groupId>
  63 + <artifactId>resource-service-model</artifactId>
  64 + <version>${yoho.version}</version>
  65 + </dependency>
  66 + <dependency>
  67 + <groupId>com.yoho.service.model</groupId>
  68 + <artifactId>promotion-service-model</artifactId>
  69 + <version>${yoho.version}</version>
  70 + </dependency>
  71 + <dependency>
  72 + <groupId>com.yoho.service.model</groupId>
  73 + <artifactId>profile-service-model</artifactId>
  74 + <version>${yoho.version}</version>
  75 + </dependency>
  76 + <dependency>
  77 + <groupId>com.yoho.service.model</groupId>
  78 + <artifactId>product-service-model</artifactId>
  79 + <version>${yoho.version}</version>
  80 + </dependency>
242 81
243 - <!-- 读取yml -->  
244 - <dependency>  
245 - <groupId>org.yaml</groupId>  
246 - <artifactId>snakeyaml</artifactId>  
247 - <version>1.14</version>  
248 - </dependency>  
249 - <!-- 日志文件管理包 -->  
250 - <!-- 格式化对象,方便输出日志 -->  
251 - <dependency>  
252 - <groupId>org.slf4j</groupId>  
253 - <artifactId>slf4j-api</artifactId>  
254 - <version>${slf4j.version}</version>  
255 - </dependency>  
256 - <dependency>  
257 - <groupId>org.slf4j</groupId>  
258 - <artifactId>jcl-over-slf4j</artifactId>  
259 - <version>${slf4j.version}</version>  
260 - </dependency>  
261 - <dependency>  
262 - <groupId>ch.qos.logback</groupId>  
263 - <artifactId>logback-classic</artifactId>  
264 - <version>${logback.version}</version>  
265 - </dependency>  
266 - <!-- 映入JSON -->  
267 - <dependency>  
268 - <groupId>com.alibaba</groupId>  
269 - <artifactId>fastjson</artifactId>  
270 - <version>1.1.41</version>  
271 - </dependency>  
272 - <!-- zookeeper相关包 -->  
273 - <dependency>  
274 - <groupId>org.apache.zookeeper</groupId>  
275 - <artifactId>zookeeper</artifactId>  
276 - <version>3.4.6</version>  
277 - <exclusions>  
278 - <exclusion>  
279 - <groupId>log4j</groupId>  
280 - <artifactId>log4j</artifactId>  
281 - </exclusion>  
282 - <exclusion>  
283 - <groupId>org.slf4j</groupId>  
284 - <artifactId>slf4j-log4j12</artifactId>  
285 - </exclusion>  
286 - </exclusions>  
287 - </dependency>  
288 - <dependency>  
289 - <groupId>org.apache.curator</groupId>  
290 - <artifactId>curator-framework</artifactId>  
291 - <version>2.7.1</version>  
292 - </dependency>  
293 - <dependency>  
294 - <groupId>org.apache.curator</groupId>  
295 - <artifactId>curator-recipes</artifactId>  
296 - <version>2.7.1</version>  
297 - </dependency>  
298 - <!-- 工具包 -->  
299 - <dependency>  
300 - <groupId>commons-lang</groupId>  
301 - <artifactId>commons-lang</artifactId>  
302 - <version>2.6</version>  
303 - </dependency>  
304 - <dependency>  
305 - <groupId>org.apache.commons</groupId>  
306 - <artifactId>commons-lang3</artifactId>  
307 - <version>3.1</version>  
308 - </dependency>  
309 - <dependency>  
310 - <groupId>commons-collections</groupId>  
311 - <artifactId>commons-collections</artifactId>  
312 - <version>3.2.1</version>  
313 - </dependency>  
314 - <dependency>  
315 - <groupId>commons-io</groupId>  
316 - <artifactId>commons-io</artifactId>  
317 - <version>2.2</version>  
318 - </dependency>  
319 - <dependency>  
320 - <groupId>commons-codec</groupId>  
321 - <artifactId>commons-codec</artifactId>  
322 - <version>1.10</version>  
323 - </dependency>  
324 - <dependency>  
325 - <groupId>com.fasterxml.jackson.core</groupId>  
326 - <artifactId>jackson-databind</artifactId>  
327 - <version>2.6.3</version>  
328 - </dependency>  
329 - <dependency>  
330 - <groupId>com.fasterxml.jackson.core</groupId>  
331 - <artifactId>jackson-core</artifactId>  
332 - <version>2.6.3</version>  
333 - </dependency>  
334 - <dependency>  
335 - <groupId>javax.servlet</groupId>  
336 - <artifactId>javax.servlet-api</artifactId>  
337 - <version>3.1.0</version>  
338 - <scope>provided</scope>  
339 - </dependency>  
340 - </dependencies>  
341 - </dependencyManagement>  
342 - <reporting>  
343 - <plugins>  
344 - <plugin>  
345 - <groupId>org.apache.maven.plugins</groupId>  
346 - <artifactId>maven-project-info-reports-plugin</artifactId>  
347 - <version>2.4</version>  
348 - </plugin>  
349 - </plugins>  
350 - </reporting>  
351 - <distributionManagement>  
352 - <repository>  
353 - <id>releases</id>  
354 - <name>Internal Releases</name>  
355 - <url>http://192.168.102.168:18081/nexus/content/repositories/releases</url>  
356 - </repository>  
357 - <snapshotRepository>  
358 - <id>snapshots</id>  
359 - <name>Internal snapshots</name>  
360 - <url>http://192.168.102.168:18081/nexus/content/repositories/snapshots</url>  
361 - </snapshotRepository>  
362 - </distributionManagement>  
363 - <build>  
364 - <plugins>  
365 - <plugin>  
366 - <groupId>org.apache.maven.plugins</groupId>  
367 - <artifactId>maven-compiler-plugin</artifactId>  
368 - <configuration>  
369 - <source>${java.version}</source>  
370 - <target>${java.version}</target>  
371 - <encoding>${java.encoding}</encoding>  
372 - </configuration>  
373 - </plugin>  
374 - <!-- resource插件, 设定编码 -->  
375 - <plugin>  
376 - <groupId>org.apache.maven.plugins</groupId>  
377 - <artifactId>maven-resources-plugin</artifactId>  
378 - <version>2.6</version>  
379 - <configuration>  
380 - <encoding>${project.build.sourceEncoding}</encoding>  
381 - </configuration>  
382 - </plugin>  
383 - <plugin>  
384 - <groupId>org.apache.maven.plugins</groupId>  
385 - <artifactId>maven-surefire-plugin</artifactId>  
386 - <configuration>  
387 - <includes>  
388 - <include>**/*Tests.java</include>  
389 - </includes>  
390 - <argLine>-Xmx256m</argLine>  
391 - </configuration>  
392 - </plugin>  
393 - <plugin>  
394 - <groupId>org.apache.maven.plugins</groupId>  
395 - <artifactId>maven-source-plugin</artifactId>  
396 - </plugin>  
397 - <!-- clean插件-->  
398 - <plugin>  
399 - <groupId>org.apache.maven.plugins</groupId>  
400 - <artifactId>maven-clean-plugin</artifactId>  
401 - </plugin>  
402 - <!-- install插件-->  
403 - <plugin>  
404 - <groupId>org.apache.maven.plugins</groupId>  
405 - <artifactId>maven-install-plugin</artifactId>  
406 - </plugin>  
407 - <!-- deploy插件-->  
408 - <plugin>  
409 - <groupId>org.apache.maven.plugins</groupId>  
410 - <artifactId>maven-deploy-plugin</artifactId>  
411 - </plugin>  
412 - </plugins>  
413 - <pluginManagement>  
414 - <plugins>  
415 - <!-- jetty -->  
416 - <plugin>  
417 - <groupId>org.mortbay.jetty</groupId>  
418 - <artifactId>jetty-maven-plugin</artifactId>  
419 - <version>8.1.16.v20140903</version>  
420 - </plugin>  
421 - <!-- compiler插件, 设定JDK版本 -->  
422 - <plugin>  
423 - <groupId>org.apache.maven.plugins</groupId>  
424 - <artifactId>maven-compiler-plugin</artifactId>  
425 - <version>3.3</version>  
426 - <configuration>  
427 - <source>1.8</source>  
428 - <target>1.8</target>  
429 - <showWarnings>true</showWarnings>  
430 - </configuration>  
431 - </plugin>  
432 - <!-- test插件 -->  
433 - <plugin>  
434 - <groupId>org.apache.maven.plugins</groupId>  
435 - <artifactId>maven-surefire-plugin</artifactId>  
436 - <version>2.8</version>  
437 - <configuration>  
438 - <includes>  
439 - <include>**/*Test.java</include>  
440 - </includes>  
441 - </configuration>  
442 - </plugin>  
443 - <!-- cobertura插件 --> 82 + <dependency>
  83 + <groupId>com.yoho.service.model</groupId>
  84 + <artifactId>order-service-model</artifactId>
  85 + <version>${yoho.version}</version>
  86 + </dependency>
  87 + <dependency>
  88 + <groupId>com.yoho.service.model</groupId>
  89 + <artifactId>message-service-model</artifactId>
  90 + <version>${yoho.version}</version>
  91 + </dependency>
  92 +
  93 + <!-- ************************ end yoho ******************************公共包 -->
  94 +
  95 +
  96 + <dependency>
  97 + <groupId>org.aspectj</groupId>
  98 + <artifactId>aspectjweaver</artifactId>
  99 + <version>1.8.7</version>
  100 + </dependency>
  101 +
  102 +
  103 + <dependency>
  104 + <groupId>javax</groupId>
  105 + <artifactId>javaee-api</artifactId>
  106 + <version>7.0</version>
  107 + <scope>provided</scope>
  108 + </dependency>
  109 + <dependency>
  110 + <groupId>junit</groupId>
  111 + <artifactId>junit</artifactId>
  112 + <version>4.11</version>
  113 + <scope>test</scope>
  114 + </dependency>
  115 + <!-- swagger -->
  116 + <dependency>
  117 + <groupId>com.mangofactory</groupId>
  118 + <artifactId>swagger-springmvc</artifactId>
  119 + <version>1.0.2</version>
  120 + </dependency>
  121 + <!-- servlet -->
  122 + <dependency>
  123 + <groupId>javax.servlet</groupId>
  124 + <artifactId>servlet-api</artifactId>
  125 + <version>3.0-alpha-1</version>
  126 + <scope>provided</scope>
  127 + </dependency>
  128 + <!-- spring核心包 -->
  129 + <dependency>
  130 + <groupId>org.springframework</groupId>
  131 + <artifactId>spring-core</artifactId>
  132 + <version>${spring.version}</version>
  133 + </dependency>
  134 + <dependency>
  135 + <groupId>org.springframework</groupId>
  136 + <artifactId>spring-beans</artifactId>
  137 + <version>${spring.version}</version>
  138 + </dependency>
  139 + <dependency>
  140 + <groupId>org.springframework</groupId>
  141 + <artifactId>spring-context</artifactId>
  142 + <version>${spring.version}</version>
  143 + </dependency>
  144 + <dependency>
  145 + <groupId>org.springframework</groupId>
  146 + <artifactId>spring-web</artifactId>
  147 + <version>${spring.version}</version>
  148 + </dependency>
  149 + <dependency>
  150 + <groupId>org.springframework</groupId>
  151 + <artifactId>spring-oxm</artifactId>
  152 + <version>${spring.version}</version>
  153 + </dependency>
  154 + <dependency>
  155 + <groupId>org.springframework</groupId>
  156 + <artifactId>spring-tx</artifactId>
  157 + <version>${spring.version}</version>
  158 + </dependency>
  159 + <dependency>
  160 + <groupId>org.springframework</groupId>
  161 + <artifactId>spring-jdbc</artifactId>
  162 + <version>${spring.version}</version>
  163 + </dependency>
  164 + <dependency>
  165 + <groupId>org.springframework</groupId>
  166 + <artifactId>spring-webmvc</artifactId>
  167 + <version>${spring.version}</version>
  168 + </dependency>
  169 + <dependency>
  170 + <groupId>org.springframework</groupId>
  171 + <artifactId>spring-aop</artifactId>
  172 + <version>${spring.version}</version>
  173 + </dependency>
  174 + <dependency>
  175 + <groupId>org.springframework</groupId>
  176 + <artifactId>spring-context-support</artifactId>
  177 + <version>${spring.version}</version>
  178 + </dependency>
  179 + <dependency>
  180 + <groupId>org.springframework</groupId>
  181 + <artifactId>spring-test</artifactId>
  182 + <version>${spring.version}</version>
  183 + </dependency>
  184 + <dependency>
  185 + <groupId>org.springframework.amqp</groupId>
  186 + <artifactId>spring-rabbit</artifactId>
  187 + <version>1.5.1.RELEASE</version>
  188 + </dependency>
  189 + <!-- mybatis核心包 -->
  190 + <dependency>
  191 + <groupId>org.mybatis</groupId>
  192 + <artifactId>mybatis</artifactId>
  193 + <version>${mybatis.version}</version>
  194 + </dependency>
  195 + <!-- mybatis/spring包 -->
  196 + <dependency>
  197 + <groupId>org.mybatis</groupId>
  198 + <artifactId>mybatis-spring</artifactId>
  199 + <version>1.2.2</version>
  200 + </dependency>
  201 + <!-- 导入Mysql数据库链接jar包 -->
  202 + <dependency>
  203 + <groupId>mysql</groupId>
  204 + <artifactId>mysql-connector-java</artifactId>
  205 + <version>5.1.30</version>
  206 + </dependency>
  207 + <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 -->
  208 + <dependency>
  209 + <groupId>commons-dbcp</groupId>
  210 + <artifactId>commons-dbcp</artifactId>
  211 + <version>1.4</version>
  212 + </dependency>
  213 + <dependency>
  214 + <groupId>org.apache.httpcomponents</groupId>
  215 + <artifactId>httpclient</artifactId>
  216 + <version>4.5.1</version>
  217 + </dependency>
  218 + <dependency>
  219 + <groupId>com.google.guava</groupId>
  220 + <artifactId>guava</artifactId>
  221 + <version>18.0</version>
  222 + </dependency>
  223 +
  224 + <!-- spring memcached-->
  225 + <dependency>
  226 + <groupId>net.spy</groupId>
  227 + <artifactId>spymemcached</artifactId>
  228 + <version>2.12.0</version>
  229 + <exclusions>
  230 + <exclusion>
  231 + <groupId>org.springframework</groupId>
  232 + <artifactId>spring-beans</artifactId>
  233 + </exclusion>
  234 + <exclusion>
  235 + <groupId>org.springframework</groupId>
  236 + <artifactId>spring-aop</artifactId>
  237 + </exclusion>
  238 + <exclusion>
  239 + <groupId>org.springframework</groupId>
  240 + <artifactId>spring-context</artifactId>
  241 + </exclusion>
  242 + <exclusion>
  243 + <groupId>org.springframework</groupId>
  244 + <artifactId>spring-core</artifactId>
  245 + </exclusion>
  246 + </exclusions>
  247 + </dependency>
  248 +
  249 + <dependency>
  250 + <groupId>com.google.code.simple-spring-memcached</groupId>
  251 + <artifactId>spring-cache</artifactId>
  252 + <version>3.6.0</version>
  253 + <exclusions>
  254 + <exclusion>
  255 + <groupId>org.springframework</groupId>
  256 + <artifactId>spring-beans</artifactId>
  257 + </exclusion>
  258 + <exclusion>
  259 + <groupId>org.springframework</groupId>
  260 + <artifactId>spring-aop</artifactId>
  261 + </exclusion>
  262 + <exclusion>
  263 + <groupId>org.springframework</groupId>
  264 + <artifactId>spring-context</artifactId>
  265 + </exclusion>
  266 + <exclusion>
  267 + <groupId>org.springframework</groupId>
  268 + <artifactId>spring-core</artifactId>
  269 + </exclusion>
  270 + </exclusions>
  271 + </dependency>
  272 +
  273 +
  274 + <dependency>
  275 + <groupId>com.google.code.simple-spring-memcached</groupId>
  276 + <artifactId>spymemcached-provider</artifactId>
  277 + <version>3.6.0</version>
  278 + </dependency>
  279 +
  280 + <!-- 读取yml -->
  281 + <dependency>
  282 + <groupId>org.yaml</groupId>
  283 + <artifactId>snakeyaml</artifactId>
  284 + <version>1.14</version>
  285 + </dependency>
  286 + <!-- 日志文件管理包 -->
  287 + <!-- 格式化对象,方便输出日志 -->
  288 + <dependency>
  289 + <groupId>org.slf4j</groupId>
  290 + <artifactId>slf4j-api</artifactId>
  291 + <version>${slf4j.version}</version>
  292 + </dependency>
  293 + <dependency>
  294 + <groupId>org.slf4j</groupId>
  295 + <artifactId>jcl-over-slf4j</artifactId>
  296 + <version>${slf4j.version}</version>
  297 + </dependency>
  298 + <dependency>
  299 + <groupId>ch.qos.logback</groupId>
  300 + <artifactId>logback-classic</artifactId>
  301 + <version>${logback.version}</version>
  302 + </dependency>
  303 + <!-- 映入JSON -->
  304 + <dependency>
  305 + <groupId>com.alibaba</groupId>
  306 + <artifactId>fastjson</artifactId>
  307 + <version>1.1.41</version>
  308 + </dependency>
  309 + <!-- zookeeper相关包 -->
  310 + <dependency>
  311 + <groupId>org.apache.zookeeper</groupId>
  312 + <artifactId>zookeeper</artifactId>
  313 + <version>3.4.6</version>
  314 + <exclusions>
  315 + <exclusion>
  316 + <groupId>log4j</groupId>
  317 + <artifactId>log4j</artifactId>
  318 + </exclusion>
  319 + <exclusion>
  320 + <groupId>org.slf4j</groupId>
  321 + <artifactId>slf4j-log4j12</artifactId>
  322 + </exclusion>
  323 + </exclusions>
  324 + </dependency>
  325 + <dependency>
  326 + <groupId>org.apache.curator</groupId>
  327 + <artifactId>curator-framework</artifactId>
  328 + <version>2.7.1</version>
  329 + </dependency>
  330 + <dependency>
  331 + <groupId>org.apache.curator</groupId>
  332 + <artifactId>curator-recipes</artifactId>
  333 + <version>2.7.1</version>
  334 + </dependency>
  335 + <!-- 工具包 -->
  336 + <dependency>
  337 + <groupId>commons-lang</groupId>
  338 + <artifactId>commons-lang</artifactId>
  339 + <version>2.6</version>
  340 + </dependency>
  341 + <dependency>
  342 + <groupId>org.apache.commons</groupId>
  343 + <artifactId>commons-lang3</artifactId>
  344 + <version>3.1</version>
  345 + </dependency>
  346 + <dependency>
  347 + <groupId>commons-collections</groupId>
  348 + <artifactId>commons-collections</artifactId>
  349 + <version>3.2.1</version>
  350 + </dependency>
  351 + <dependency>
  352 + <groupId>commons-io</groupId>
  353 + <artifactId>commons-io</artifactId>
  354 + <version>2.2</version>
  355 + </dependency>
  356 + <dependency>
  357 + <groupId>commons-codec</groupId>
  358 + <artifactId>commons-codec</artifactId>
  359 + <version>1.10</version>
  360 + </dependency>
  361 + <dependency>
  362 + <groupId>com.fasterxml.jackson.core</groupId>
  363 + <artifactId>jackson-databind</artifactId>
  364 + <version>2.6.3</version>
  365 + </dependency>
  366 + <dependency>
  367 + <groupId>com.fasterxml.jackson.core</groupId>
  368 + <artifactId>jackson-core</artifactId>
  369 + <version>2.6.3</version>
  370 + </dependency>
  371 + <dependency>
  372 + <groupId>javax.servlet</groupId>
  373 + <artifactId>javax.servlet-api</artifactId>
  374 + <version>3.1.0</version>
  375 + <scope>provided</scope>
  376 + </dependency>
  377 + </dependencies>
  378 + </dependencyManagement>
  379 + <reporting>
  380 + <plugins>
444 <plugin> 381 <plugin>
445 - <groupId>org.codehaus.mojo</groupId>  
446 - <artifactId>cobertura-maven-plugin</artifactId>  
447 - <version>2.4</version> 382 + <groupId>org.apache.maven.plugins</groupId>
  383 + <artifactId>maven-project-info-reports-plugin</artifactId>
  384 + <version>2.4</version>
448 </plugin> 385 </plugin>
449 - <!-- war插件--> 386 + </plugins>
  387 + </reporting>
  388 + <distributionManagement>
  389 + <repository>
  390 + <id>releases</id>
  391 + <name>Internal Releases</name>
  392 + <url>http://192.168.102.168:18081/nexus/content/repositories/releases</url>
  393 + </repository>
  394 + <snapshotRepository>
  395 + <id>snapshots</id>
  396 + <name>Internal snapshots</name>
  397 + <url>http://192.168.102.168:18081/nexus/content/repositories/snapshots</url>
  398 + </snapshotRepository>
  399 + </distributionManagement>
  400 + <build>
  401 + <plugins>
450 <plugin> 402 <plugin>
451 - <groupId>org.apache.maven.plugins</groupId>  
452 - <artifactId>maven-war-plugin</artifactId>  
453 - <version>2.4</version>  
454 - <configuration>  
455 - <warName>${project.artifactId}</warName>  
456 - <archive>  
457 - <addMavenDescriptor>false</addMavenDescriptor>  
458 - </archive>  
459 - </configuration> 403 + <groupId>org.apache.maven.plugins</groupId>
  404 + <artifactId>maven-compiler-plugin</artifactId>
  405 + <configuration>
  406 + <source>${java.version}</source>
  407 + <target>${java.version}</target>
  408 + <encoding>${java.encoding}</encoding>
  409 + </configuration>
460 </plugin> 410 </plugin>
461 <!-- resource插件, 设定编码 --> 411 <!-- resource插件, 设定编码 -->
462 <plugin> 412 <plugin>
463 - <groupId>org.apache.maven.plugins</groupId>  
464 - <artifactId>maven-resources-plugin</artifactId>  
465 - <version>2.6</version>  
466 - <configuration>  
467 - <encoding>${project.build.sourceEncoding}</encoding>  
468 - </configuration> 413 + <groupId>org.apache.maven.plugins</groupId>
  414 + <artifactId>maven-resources-plugin</artifactId>
  415 + <version>2.6</version>
  416 + <configuration>
  417 + <encoding>${project.build.sourceEncoding}</encoding>
  418 + </configuration>
469 </plugin> 419 </plugin>
470 - <!-- jar插件 -->  
471 <plugin> 420 <plugin>
472 - <groupId>org.apache.maven.plugins</groupId>  
473 - <artifactId>maven-jar-plugin</artifactId>  
474 - <version>2.6</version>  
475 - <configuration>  
476 - <archive>  
477 - <manifest>  
478 - <addDefaultImplementationEntries>true</addDefaultImplementationEntries>  
479 - <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>  
480 - </manifest>  
481 - </archive>  
482 - </configuration> 421 + <groupId>org.apache.maven.plugins</groupId>
  422 + <artifactId>maven-surefire-plugin</artifactId>
  423 + <configuration>
  424 + <includes>
  425 + <include>**/*Tests.java</include>
  426 + </includes>
  427 + <argLine>-Xmx256m</argLine>
  428 + </configuration>
483 </plugin> 429 </plugin>
484 <plugin> 430 <plugin>
485 - <groupId>org.apache.maven.plugins</groupId>  
486 - <artifactId>maven-source-plugin</artifactId>  
487 - <version>2.4</version> 431 + <groupId>org.apache.maven.plugins</groupId>
  432 + <artifactId>maven-source-plugin</artifactId>
488 </plugin> 433 </plugin>
489 <!-- clean插件--> 434 <!-- clean插件-->
490 <plugin> 435 <plugin>
491 - <groupId>org.apache.maven.plugins</groupId>  
492 - <artifactId>maven-clean-plugin</artifactId>  
493 - <version>2.5</version> 436 + <groupId>org.apache.maven.plugins</groupId>
  437 + <artifactId>maven-clean-plugin</artifactId>
494 </plugin> 438 </plugin>
495 <!-- install插件--> 439 <!-- install插件-->
496 <plugin> 440 <plugin>
497 - <groupId>org.apache.maven.plugins</groupId>  
498 - <artifactId>maven-install-plugin</artifactId>  
499 - <version>2.5</version> 441 + <groupId>org.apache.maven.plugins</groupId>
  442 + <artifactId>maven-install-plugin</artifactId>
500 </plugin> 443 </plugin>
501 <!-- deploy插件--> 444 <!-- deploy插件-->
502 <plugin> 445 <plugin>
503 - <groupId>org.apache.maven.plugins</groupId>  
504 - <artifactId>maven-deploy-plugin</artifactId>  
505 - <version>2.8</version>  
506 - </plugin>  
507 - <!-- eclipse插件 -->  
508 - <plugin>  
509 - <groupId>org.apache.maven.plugins</groupId>  
510 - <artifactId>maven-eclipse-plugin</artifactId>  
511 - <version>2.10</version>  
512 - <configuration>  
513 - <sourceExcludes>  
514 - <sourceExclude>**/.svn/</sourceExclude>  
515 - </sourceExcludes>  
516 - <downloadSources>true</downloadSources>  
517 - </configuration>  
518 - </plugin>  
519 - <!-- jetty插件 -->  
520 - <plugin>  
521 - <groupId>org.mortbay.jetty</groupId>  
522 - <artifactId>maven-jetty-plugin</artifactId>  
523 - <version>6.1.25</version>  
524 - <configuration>  
525 - <reload>manual</reload>  
526 - </configuration>  
527 - </plugin>  
528 - <!-- dependency插件 -->  
529 - <plugin>  
530 - <groupId>org.apache.maven.plugins</groupId>  
531 - <artifactId>maven-dependency-plugin</artifactId>  
532 - <version>2.8</version>  
533 - </plugin>  
534 - <!-- ant插件 -->  
535 - <plugin>  
536 - <groupId>org.apache.maven.plugins</groupId>  
537 - <artifactId>maven-antrun-plugin</artifactId>  
538 - <version>1.7</version>  
539 - </plugin>  
540 - <!-- assembly plugin -->  
541 - <plugin>  
542 - <groupId>org.apache.maven.plugins</groupId>  
543 - <artifactId>maven-assembly-plugin</artifactId>  
544 - <version>2.2-beta-5</version> 446 + <groupId>org.apache.maven.plugins</groupId>
  447 + <artifactId>maven-deploy-plugin</artifactId>
545 </plugin> 448 </plugin>
546 - </plugins>  
547 - </pluginManagement>  
548 - </build> 449 + </plugins>
  450 + <pluginManagement>
  451 + <plugins>
  452 + <!-- jetty -->
  453 + <plugin>
  454 + <groupId>org.mortbay.jetty</groupId>
  455 + <artifactId>jetty-maven-plugin</artifactId>
  456 + <version>8.1.16.v20140903</version>
  457 + </plugin>
  458 + <!-- compiler插件, 设定JDK版本 -->
  459 + <plugin>
  460 + <groupId>org.apache.maven.plugins</groupId>
  461 + <artifactId>maven-compiler-plugin</artifactId>
  462 + <version>3.3</version>
  463 + <configuration>
  464 + <source>1.8</source>
  465 + <target>1.8</target>
  466 + <showWarnings>true</showWarnings>
  467 + </configuration>
  468 + </plugin>
  469 + <!-- test插件 -->
  470 + <plugin>
  471 + <groupId>org.apache.maven.plugins</groupId>
  472 + <artifactId>maven-surefire-plugin</artifactId>
  473 + <version>2.8</version>
  474 + <configuration>
  475 + <includes>
  476 + <include>**/*Test.java</include>
  477 + </includes>
  478 + </configuration>
  479 + </plugin>
  480 + <!-- cobertura插件 -->
  481 + <plugin>
  482 + <groupId>org.codehaus.mojo</groupId>
  483 + <artifactId>cobertura-maven-plugin</artifactId>
  484 + <version>2.4</version>
  485 + </plugin>
  486 + <!-- war插件-->
  487 + <plugin>
  488 + <groupId>org.apache.maven.plugins</groupId>
  489 + <artifactId>maven-war-plugin</artifactId>
  490 + <version>2.4</version>
  491 + <configuration>
  492 + <warName>${project.artifactId}</warName>
  493 + <archive>
  494 + <addMavenDescriptor>false</addMavenDescriptor>
  495 + </archive>
  496 + </configuration>
  497 + </plugin>
  498 + <!-- resource插件, 设定编码 -->
  499 + <plugin>
  500 + <groupId>org.apache.maven.plugins</groupId>
  501 + <artifactId>maven-resources-plugin</artifactId>
  502 + <version>2.6</version>
  503 + <configuration>
  504 + <encoding>${project.build.sourceEncoding}</encoding>
  505 + </configuration>
  506 + </plugin>
  507 + <!-- jar插件 -->
  508 + <plugin>
  509 + <groupId>org.apache.maven.plugins</groupId>
  510 + <artifactId>maven-jar-plugin</artifactId>
  511 + <version>2.6</version>
  512 + <configuration>
  513 + <archive>
  514 + <manifest>
  515 + <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  516 + <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  517 + </manifest>
  518 + </archive>
  519 + </configuration>
  520 + </plugin>
  521 + <plugin>
  522 + <groupId>org.apache.maven.plugins</groupId>
  523 + <artifactId>maven-source-plugin</artifactId>
  524 + <version>2.4</version>
  525 + </plugin>
  526 + <!-- clean插件-->
  527 + <plugin>
  528 + <groupId>org.apache.maven.plugins</groupId>
  529 + <artifactId>maven-clean-plugin</artifactId>
  530 + <version>2.5</version>
  531 + </plugin>
  532 + <!-- install插件-->
  533 + <plugin>
  534 + <groupId>org.apache.maven.plugins</groupId>
  535 + <artifactId>maven-install-plugin</artifactId>
  536 + <version>2.5</version>
  537 + </plugin>
  538 + <!-- deploy插件-->
  539 + <plugin>
  540 + <groupId>org.apache.maven.plugins</groupId>
  541 + <artifactId>maven-deploy-plugin</artifactId>
  542 + <version>2.8</version>
  543 + </plugin>
  544 + <!-- eclipse插件 -->
  545 + <plugin>
  546 + <groupId>org.apache.maven.plugins</groupId>
  547 + <artifactId>maven-eclipse-plugin</artifactId>
  548 + <version>2.10</version>
  549 + <configuration>
  550 + <sourceExcludes>
  551 + <sourceExclude>**/.svn/</sourceExclude>
  552 + </sourceExcludes>
  553 + <downloadSources>true</downloadSources>
  554 + </configuration>
  555 + </plugin>
  556 + <!-- jetty插件 -->
  557 + <plugin>
  558 + <groupId>org.mortbay.jetty</groupId>
  559 + <artifactId>maven-jetty-plugin</artifactId>
  560 + <version>6.1.25</version>
  561 + <configuration>
  562 + <reload>manual</reload>
  563 + </configuration>
  564 + </plugin>
  565 + <!-- dependency插件 -->
  566 + <plugin>
  567 + <groupId>org.apache.maven.plugins</groupId>
  568 + <artifactId>maven-dependency-plugin</artifactId>
  569 + <version>2.8</version>
  570 + </plugin>
  571 + <!-- ant插件 -->
  572 + <plugin>
  573 + <groupId>org.apache.maven.plugins</groupId>
  574 + <artifactId>maven-antrun-plugin</artifactId>
  575 + <version>1.7</version>
  576 + </plugin>
  577 + <!-- assembly plugin -->
  578 + <plugin>
  579 + <groupId>org.apache.maven.plugins</groupId>
  580 + <artifactId>maven-assembly-plugin</artifactId>
  581 + <version>2.2-beta-5</version>
  582 + </plugin>
  583 + </plugins>
  584 + </pluginManagement>
  585 + </build>
549 </project> 586 </project>