pom.xml 27.7 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.springside</groupId>
	<artifactId>springside-parent</artifactId>
C
Calvin 已提交
7
	<version>4.1.0-SNAPSHOT</version>
C
Calvin 已提交
8
	<name>Springside :: Module :: Parent</name>
9 10 11 12
	<packaging>pom</packaging>

	<properties>
		<!-- 主要依赖库的版本定义 -->
C
Calvin 已提交
13
		<springside.version>4.1.0-SNAPSHOT</springside.version>
14
		<spring.version>3.2.3.RELEASE</spring.version>
C
Calvin 已提交
15
		<hibernate.version>4.2.3.Final</hibernate.version>
16
		<mybatis.version>3.2.2</mybatis.version>
17
		<spring-data-jpa.version>1.3.2.RELEASE</spring-data-jpa.version>
18
		<tomcat-jdbc.version>7.0.42</tomcat-jdbc.version>
19
		<sitemesh.version>2.4.2</sitemesh.version>
20 21
		<shiro.version>1.2.2</shiro.version>
		<cxf.version>2.7.5</cxf.version>
22
		<activemq.version>5.7.0</activemq.version>
C
Calvin 已提交
23
		<quartz.version>2.2.0</quartz.version>
C
Calvin 已提交
24
        <jedis.version>2.1.0</jedis.version>
25
		<ehcache.version>2.6.6</ehcache.version>
C
Calvin 已提交
26 27
		<spymemcached.version>2.9.1</spymemcached.version>
		<hystrix.version>1.2.17</hystrix.version>
28
		<hibernate-validator.version>4.3.1.Final</hibernate-validator.version>
29
		<jolokia.version>1.1.2</jolokia.version>
30
		<jackson.version>2.1.5</jackson.version>
31
		<slf4j.version>1.7.5</slf4j.version>
32
		<logback.version>1.0.13</logback.version>
C
cleanup  
Calvin 已提交
33
		<commons-lang3.version>3.1</commons-lang3.version>
C
Calvin 已提交
34
		<commons-io.version>2.4</commons-io.version>
35 36
		<guava.version>14.0.1</guava.version>
		<joda-time.version>2.2</joda-time.version>
37
		<dozer.version>5.4.0</dozer.version>
C
Calvin 已提交
38
		<httpclient.version>4.2.5</httpclient.version>
39
		<freemarker.version>2.3.20</freemarker.version>
40 41
		<junit.version>4.11</junit.version>
		<mockito.version>1.9.5</mockito.version>
42 43 44 45
		<powermock.version>1.5.1</powermock.version>
		<selenium.version>2.33.0</selenium.version>
		<jetty.version>7.6.11.v20130520</jetty.version>
		<h2.version>1.3.172</h2.version>
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

		<!-- Plugin的属性定义 -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<jdk.version>1.6</jdk.version>
	</properties>

	<!-- 设定除中央仓库(repo1.maven.org/maven2/)外的其他仓库,按设定顺序进行查找. -->
	<repositories>
		<!-- 如有Nexus私服, 取消注释并指向正确的服务器地址.
		<repository>
			<id>nexus</id>
			<name>Team Nexus Repository</name>
			<url>http://localhost:8081/nexus/content/groups/public</url> 
		</repository>
		-->
	</repositories>

63
	<!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. 
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
	<pluginRepositories> 
		<pluginRepository> 
			<id>nexus</id>
			<name>Team Nexus Repository</name>
			<url>http://localhost:8081/nexus/content/groups/public</url> 
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
	-->
	
	<!-- 预定义依赖项的version,scope与exclusions,子项目中只需定义groupId 和 artifactId 即可 -->
	<dependencyManagement>
		<dependencies>
			<!-- SPRINGSIDE MODULES begin -->
			<dependency>
				<groupId>org.springside</groupId>
				<artifactId>springside-core</artifactId>
				<version>${springside.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springside</groupId>
				<artifactId>springside-extension</artifactId>
				<version>${springside.version}</version>
			</dependency>
			<!-- SPRINGSIDE MODULES end -->

92
			<!-- SPRING basic begin(一般不需要显式定义) -->
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-core</artifactId>
				<version>${spring.version}</version>
				<exclusions>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-beans</artifactId>
				<version>${spring.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-context</artifactId>
				<version>${spring.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
116
				<artifactId>spring-aop</artifactId>
117 118 119 120
				<version>${spring.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
121
				<artifactId>spring-tx</artifactId>
122 123
				<version>${spring.version}</version>
			</dependency>
124
			<!-- email/scheduler/freemarker -->
125 126
			<dependency>
				<groupId>org.springframework</groupId>
127
				<artifactId>spring-context-support</artifactId>
128 129
				<version>${spring.version}</version>
			</dependency>
130 131 132
			<!-- SPRING basic end -->			
			
			<!-- AOP begin-->
133 134 135
			<dependency>
				<groupId>org.aspectj</groupId>
				<artifactId>aspectjrt</artifactId>
136
				<version>1.7.3</version>
137
			</dependency>
138 139 140
			<dependency>
				<groupId>org.aspectj</groupId>
				<artifactId>aspectjweaver</artifactId>
141
				<version>1.7.3</version>
142
				<scope>runtime</scope>
143
			</dependency>
144
			<!-- AOP end -->
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167

			<!-- PERSISTENCE begin -->
			<!-- hibernate -->
			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-core</artifactId>
				<version>${hibernate.version}</version>
			</dependency>
			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-entitymanager</artifactId>
				<version>${hibernate.version}</version>
			</dependency>
			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-ehcache</artifactId>
				<version>${hibernate.version}</version>
			</dependency>
			
			<!-- spring data jpa -->
			<dependency>
				<groupId>org.springframework.data</groupId>
				<artifactId>spring-data-jpa</artifactId>
C
cleanup  
Calvin 已提交
168
				<version>${spring-data-jpa.version}</version>
169 170 171 172 173 174
				<exclusions>
					<exclusion>
						<groupId>junit</groupId>
						<artifactId>junit-dep</artifactId>
					</exclusion>
				</exclusions>
175 176 177 178 179 180 181 182 183 184 185
        	</dependency>
			
			<!-- mybatis -->
			<dependency>
				<groupId>org.mybatis</groupId>
				<artifactId>mybatis</artifactId>
				<version>${mybatis.version}</version>
			</dependency>
			<dependency>
				<groupId>org.mybatis</groupId>
				<artifactId>mybatis-spring</artifactId>
C
Calvin 已提交
186
				<version>1.2.0</version>
187 188 189 190 191 192 193 194 195 196 197 198 199 200
			</dependency>

			<!-- spring orm -->
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-orm</artifactId>
				<version>${spring.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-jdbc</artifactId>
				<version>${spring.version}</version>
			</dependency>

201
			<!-- connection pool -->
202
			<dependency>
203 204 205
				<groupId>org.apache.tomcat</groupId>
				<artifactId>tomcat-jdbc</artifactId>
				<version>${tomcat-jdbc.version}</version>
206
				<scope>runtime</scope>
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
			</dependency>
			<!-- PERSISTENCE end -->

			<!-- WEB begin -->
			<!-- spring mvc -->
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-web</artifactId>
				<version>${spring.version}</version>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-webmvc</artifactId>
				<version>${spring.version}</version>
			</dependency>

			<!-- sitemesh -->
			<dependency>
				<groupId>opensymphony</groupId>
				<artifactId>sitemesh</artifactId>
227
				<version>${sitemesh.version}</version>
228
				<scope>runtime</scope>
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
			</dependency>

			<!-- j2ee web spec -->
			<dependency>
				<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
				<version>2.5</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
				<version>1.2</version>
			</dependency>
			<!-- WEB end -->
C
Calvin 已提交
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
			
			<!-- SECURITY begin -->
			<dependency>
				<groupId>org.apache.shiro</groupId>
				<artifactId>shiro-core</artifactId>
				<version>${shiro.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.shiro</groupId>
				<artifactId>shiro-spring</artifactId>
				<version>${shiro.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.shiro</groupId>
				<artifactId>shiro-web</artifactId>
				<version>${shiro.version}</version>
			</dependency>
			<dependency>
				<groupId>org.apache.shiro</groupId>
				<artifactId>shiro-ehcache</artifactId>
				<version>${shiro.version}</version>
			</dependency>
			<!-- SECURITY end -->
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308

			<!-- SOAP begin -->
			<dependency>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-rt-core</artifactId>
				<version>${cxf.version}</version>
				<exclusions>
					<!-- use javax.mail.mail instead -->
					<exclusion>
						<groupId>org.apache.geronimo.specs</groupId>
						<artifactId>geronimo-javamail_1.4_spec</artifactId>
					</exclusion>
					<!-- use javax.activation.activation instead -->
					<exclusion>
						<groupId>org.apache.geronimo.specs</groupId>
						<artifactId>geronimo-activation_1.1_spec</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-rt-frontend-jaxws</artifactId>
				<version>${cxf.version}</version>
				<exclusions>
					<!-- see above -->
					<exclusion>
						<groupId>org.apache.geronimo.specs</groupId>
						<artifactId>geronimo-javamail_1.4_spec</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.apache.geronimo.specs</groupId>
						<artifactId>geronimo-activation_1.1_spec</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-rt-transports-http</artifactId>
				<version>${cxf.version}</version>
			</dependency>
			<!-- SOAP end -->

C
Calvin 已提交
309 310 311 312 313 314 315 316 317
			<!-- JAX-RS begin -->
			<dependency>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-rt-frontend-jaxrs</artifactId>
				<version>${cxf.version}</version>
			</dependency>
			<dependency>
	            <groupId>com.fasterxml.jackson.jaxrs</groupId>
	            <artifactId>jackson-jaxrs-json-provider</artifactId>
318
	            <version>${jackson.version}</version>
C
Calvin 已提交
319 320 321
        	</dependency>
			<!-- JAX-RS end -->
			
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
			<!-- JMS begin -->
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-jms</artifactId>
				<version>${spring.version}</version>
			</dependency>

			<dependency>
				<groupId>org.apache.activemq</groupId>
				<artifactId>activemq-core</artifactId>
				<version>${activemq.version}</version>
				<exclusions>
					<exclusion>
						<groupId>org.apache.activemq.protobuf</groupId>
						<artifactId>activemq-protobuf</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.springframework.osgi</groupId>
						<artifactId>spring-osgi-core</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.osgi</groupId>
						<artifactId>org.osgi.core</artifactId>
					</exclusion>
346 347 348 349
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
350 351 352 353 354 355 356 357 358 359 360
				</exclusions>
			</dependency>
			<!-- JMS end -->

			<!-- TIMER -->
			<dependency>
				<groupId>org.quartz-scheduler</groupId>
				<artifactId>quartz</artifactId>
				<version>${quartz.version}</version>
			</dependency>

C
Calvin 已提交
361 362 363 364 365 366 367
            <!-- NOSQL begin-->
            <dependency>
                <groupId>redis.clients</groupId>
                <artifactId>jedis</artifactId>
                <version>${jedis.version}</version>
            </dependency>
            <!-- NOSQL end-->
C
Calvin 已提交
368 369 370 371 372 373 374 375 376 377 378 379 380
            
            <!-- Netflix Hystrix  -->
			<dependency>
				<groupId>com.netflix.hystrix</groupId>
				<artifactId>hystrix-core</artifactId>
				<version>${hystrix.version}</version>
				<exclusions>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
C
Calvin 已提交
381

382 383 384
			<!-- CACHE begin -->
			<!-- memcached -->
			<dependency>
385
				<groupId>net.spy</groupId>
386
				<artifactId>spymemcached</artifactId>
C
Calvin 已提交
387
				<version>${spymemcached.version}</version>
388 389 390 391 392 393 394 395 396 397 398 399 400 401
			</dependency>
			
			<!-- ehcache -->
			<dependency>
				<groupId>net.sf.ehcache</groupId>
				<artifactId>ehcache-core</artifactId>
				<version>${ehcache.version}</version>
			</dependency>
			<!-- CACHE end -->

			<!-- jolokia Restful JMX begin -->
			<dependency>
				<groupId>org.jolokia</groupId>
				<artifactId>jolokia-core</artifactId>
C
Calvin 已提交
402
				<version>${jolokia.version}</version>
403 404 405
			</dependency>
			<!-- jolokia end-->
			
C
Calvin 已提交
406
			<!-- JSR303 Bean Validator -->
407
			<dependency>
C
Calvin 已提交
408 409 410
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-validator</artifactId>
				<version>${hibernate-validator.version}</version>
411 412
			</dependency>

C
Calvin 已提交
413
			<!-- JSON begin -->
C
Calvin 已提交
414 415 416 417 418
			<dependency>
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-core</artifactId>
				<version>${jackson.version}</version>
			</dependency>			
419
			<dependency>
C
Calvin 已提交
420 421 422
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-databind</artifactId>
				<version>${jackson.version}</version>
423 424
			</dependency>
			<dependency>
C
Calvin 已提交
425 426
				<groupId>com.fasterxml.jackson.module</groupId>
				<artifactId>jackson-module-jaxb-annotations</artifactId>
C
Calvin 已提交
427
				<version>${jackson.version}</version>
428
			</dependency>
C
Calvin 已提交
429
			<!-- JSON end -->
430 431 432 433 434 435 436 437 438 439 440 441 442 443

			<!-- XML begin -->
			<dependency>
				<groupId>dom4j</groupId>
				<artifactId>dom4j</artifactId>
				<version>1.6.1</version>
				<exclusions>
					<exclusion>
						<groupId>xml-apis</groupId>
						<artifactId>xml-apis</artifactId>
					</exclusion>
				</exclusions>
			</dependency>

444
			<!-- 重新定义Java XPath Engine到最新版,避免旧版那些不必要的依赖 -->
445 446 447
			<dependency>
				<groupId>jaxen</groupId>
				<artifactId>jaxen</artifactId>
448
				<version>1.1.4</version>
449
			</dependency>
C
Calvin 已提交
450
			<!-- XML end -->			
451
			
C
Calvin 已提交
452 453
			<!-- LOGGING begin -->
			<!-- slf4j -->
454
			<dependency>
C
Calvin 已提交
455 456 457
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j.version}</version>
458
			</dependency>
459 460 461 462 463 464 465 466
			
			<!-- logback -->
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>${logback.version}</version>
			</dependency>
			
C
Calvin 已提交
467
			<!-- 代码直接调用log4j会被桥接到slf4j -->
468
			<dependency>
C
Calvin 已提交
469
				<groupId>org.slf4j</groupId>
470
				<artifactId>log4j-over-slf4j</artifactId>
C
Calvin 已提交
471
				<version>${slf4j.version}</version>
472
				<scope>runtime</scope>
473
			</dependency>
474
			
C
Calvin 已提交
475
			<!-- 代码直接调用common-logging会被桥接到slf4j -->
476
			<dependency>
C
Calvin 已提交
477 478 479
				<groupId>org.slf4j</groupId>
				<artifactId>jcl-over-slf4j</artifactId>
				<version>${slf4j.version}</version>
480
				<scope>runtime</scope>
481
			</dependency>
482
			
C
Calvin 已提交
483
			<!-- 代码直接调用java.util.logging会被桥接到slf4j -->
484 485 486 487 488 489
			<dependency>
        		<groupId>org.slf4j</groupId>
        		<artifactId>jul-to-slf4j</artifactId>
        		<version>${slf4j.version}</version>
        		<scope>runtime</scope>
      		</dependency>
C
Calvin 已提交
490 491

			<!-- log4jdbc -->
492
			<dependency>
493 494 495
	 			<groupId>org.bgee.log4jdbc-log4j2</groupId>
  				<artifactId>log4jdbc-log4j2-jdbc4</artifactId>
  				<version>1.15</version>
496
				<scope>runtime</scope>
497
			</dependency>
C
Calvin 已提交
498 499 500
			<!-- LOGGING end -->
			
			<!-- GENERAL UTILS begin -->
501 502 503
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
C
cleanup  
Calvin 已提交
504
				<version>${commons-lang3.version}</version>
505 506 507 508
			</dependency>
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
C
Calvin 已提交
509
				<version>${commons-io.version}</version>
510 511
			</dependency>
			<dependency>
C
Calvin 已提交
512 513
				<groupId>commons-codec</groupId>
				<artifactId>commons-codec</artifactId>
514
				<version>1.8</version>
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
			</dependency>
			<dependency>
				<groupId>commons-beanutils</groupId>
				<artifactId>commons-beanutils</artifactId>
				<version>1.8.3</version>
				<exclusions>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
				</exclusions>
			</dependency>

			<!-- google java library -->
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
C
cleanup  
Calvin 已提交
532
				<version>${guava.version}</version>
533 534 535 536 537 538
			</dependency>

			<!-- joda -->
			<dependency>
				<groupId>joda-time</groupId>
				<artifactId>joda-time</artifactId>
C
Calvin 已提交
539
				<version>${joda-time.version}</version>
540
			</dependency>
541 542 543 544 545
			<dependency>
				<groupId>joda-time</groupId>
				<artifactId>joda-time-jsptags</artifactId>
				<version>1.1.1</version>
			</dependency>
546 547 548 549
			<!-- joda for jackson -->
			<dependency>
	            <groupId>com.fasterxml.jackson.datatype</groupId>
	            <artifactId>jackson-datatype-joda</artifactId>
550
	            <version>${jackson.version}</version>
551
        	</dependency>	
552 553
			<!-- GENERAL UTILS end -->

C
Calvin 已提交
554
			<!-- OTHER TOOLS begin -->
555 556 557 558
			<!-- pojo copy -->
			<dependency>
				<groupId>net.sf.dozer</groupId>
				<artifactId>dozer</artifactId>
C
Calvin 已提交
559
				<version>${dozer.version}</version>
560 561 562 563 564 565
				<exclusions>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-log4j12</artifactId>
					</exclusion>
				</exclusions>
566 567 568 569 570 571
			</dependency>
			
			<!-- httpclient -->
			<dependency>
				<groupId>org.apache.httpcomponents</groupId>
				<artifactId>httpclient</artifactId>
C
Calvin 已提交
572
				<version>${httpclient.version}</version>
573 574 575 576 577 578
				<exclusions>
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
				</exclusions>
579 580 581 582 583 584
			</dependency>

			<!-- template engine -->
			<dependency>
				<groupId>org.freemarker</groupId>
				<artifactId>freemarker</artifactId>
C
Calvin 已提交
585
				<version>${freemarker.version}</version>
586 587
			</dependency>

588 589 590 591 592 593 594
			<!-- commons-pool -->
	        <dependency>
	            <groupId>commons-pool</groupId>
	            <artifactId>commons-pool</artifactId>
	            <version>1.6</version>
	        </dependency>

595 596 597 598
			<!-- email -->
			<dependency>
				<groupId>javax.mail</groupId>
				<artifactId>mail</artifactId>
C
Calvin 已提交
599
				<version>1.4.7</version>
600 601 602 603 604 605
			</dependency>
			<dependency>
				<groupId>javax.activation</groupId>
				<artifactId>activation</artifactId>
				<version>1.1.1</version>
			</dependency>
C
Calvin 已提交
606
			<!-- OTHER TOOLS end -->
607 608 609 610 611 612
	
			<!-- TEST begin -->
			<!-- junit -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
C
cleanup  
Calvin 已提交
613
				<version>${junit.version}</version>
614 615 616 617 618 619
				<scope>test</scope>
			</dependency>
			<!-- mockito -->
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-core</artifactId>
C
cleanup  
Calvin 已提交
620
				<version>${mockito.version}</version>
621 622 623 624 625
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.powermock</groupId>
				<artifactId>powermock-module-junit4</artifactId>
C
cleanup  
Calvin 已提交
626
				<version>${powermock.version}</version>
627 628 629 630 631
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.powermock</groupId>
				<artifactId>powermock-api-mockito</artifactId>
C
cleanup  
Calvin 已提交
632
				<version>${powermock.version}</version>
633 634 635 636 637 638 639 640 641
				<scope>test</scope>
				<exclusions>
					<exclusion>
						<groupId>org.mockito</groupId>
						<artifactId>mockito-all</artifactId>
					</exclusion>
				</exclusions>
			</dependency>

C
Calvin 已提交
642
			<!-- springside -->
643
			<dependency>
C
Calvin 已提交
644 645 646
				<groupId>org.springside</groupId>
				<artifactId>springside-test</artifactId>
				<version>${springside.version}</version>
647 648 649
				<scope>test</scope>
			</dependency>

C
Calvin 已提交
650
			<!-- spring -->
651
			<dependency>
C
Calvin 已提交
652 653 654
				<groupId>org.springframework</groupId>
				<artifactId>spring-test</artifactId>
				<version>${spring.version}</version>
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672
				<scope>test</scope>
			</dependency>
			
			<!-- selenium 2.0 -->
			<dependency>
				<groupId>org.seleniumhq.selenium</groupId>
				<artifactId>selenium-java</artifactId>
				<version>${selenium.version}</version>
				<scope>test</scope>
				<exclusions>
					<exclusion>
						<groupId>org.seleniumhq.selenium</groupId>
						<artifactId>selenium-android-driver</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.seleniumhq.selenium</groupId>
						<artifactId>selenium-iphone-driver</artifactId>
					</exclusion>
673 674 675 676
					<exclusion>
						<groupId>org.seleniumhq.selenium</groupId>
						<artifactId>selenium-htmlunit-driver</artifactId>
					</exclusion>
677 678 679 680
					<exclusion>
						<groupId>org.seleniumhq.selenium</groupId>
						<artifactId>selenium-safari-driver</artifactId>
					</exclusion>
681 682 683 684
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
685 686 687 688 689 690 691 692 693 694 695 696
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.seleniumhq.selenium</groupId>
				<artifactId>selenium-remote-driver</artifactId>
				<version>${selenium.version}</version>
				<scope>test</scope>
				<exclusions>
					<exclusion>
						<groupId>cglib</groupId>
						<artifactId>cglib-nodep</artifactId>
					</exclusion>
697 698 699 700
					<exclusion>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
					</exclusion>
701 702
				</exclusions>
			</dependency>
C
Calvin 已提交
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718
			
			<!-- jetty -->
			<dependency>
				<groupId>org.eclipse.jetty.aggregate</groupId>
				<artifactId>jetty-webapp</artifactId>
				<version>${jetty.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jetty</groupId>
				<artifactId>jetty-jsp</artifactId>
				<version>${jetty.version}</version>
				<scope>test</scope>
			</dependency>
			
			<!-- h2 -->
719 720 721 722 723 724 725
			<dependency>
				<groupId>com.h2database</groupId>
				<artifactId>h2</artifactId>
				<version>${h2.version}</version>
				<scope>test</scope>
			</dependency>
			
C
Calvin 已提交
726 727 728 729 730 731 732 733 734
			<!-- memcached simulator -->
			<dependency>
				<groupId>com.thimbleware.jmemcached</groupId>
				<artifactId>jmemcached-core</artifactId>
				<version>1.0.0</version>
				<scope>test</scope>
			</dependency>
		
			<!-- smtp server simulator -->
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752
			<dependency>
				<groupId>com.icegreen</groupId>
				<artifactId>greenmail</artifactId>
				<version>1.3.1b</version>
				<scope>test</scope>
			</dependency>
			<!-- TEST end -->
		</dependencies>
	</dependencyManagement>

	<!-- 插件配置 -->
	<build>
		<pluginManagement>
			<plugins>
				<!-- compiler插件, 设定JDK版本 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
C
Calvin 已提交
753
					<version>3.1</version>
754 755 756 757 758 759 760 761 762 763 764
					<configuration>
						<source>${jdk.version}</source>
						<target>${jdk.version}</target>
						<showWarnings>true</showWarnings>
					</configuration>
				</plugin>

				<!-- resource插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
765
					<version>2.6</version>
766 767
				</plugin>

C
Calvin 已提交
768
				<!-- test插件, 仅测试名称为*Test的类, 使用支持分组测试的surefire-junit47 driver -->
769 770 771
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
772
					<version>2.15</version>
773 774 775 776 777 778 779 780 781
					<configuration>
						<includes>
							<include>**/*Test.java</include>
						</includes>
					</configuration>
					<dependencies>
						<dependency>
							<groupId>org.apache.maven.surefire</groupId>
							<artifactId>surefire-junit47</artifactId>
782
							<version>2.15</version>
783 784 785 786 787 788 789 790
						</dependency>
					</dependencies>
				</plugin>
				
				<!-- 增加更多的Source和Test Source目录插件 -->
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
C
Calvin 已提交
791
					<version>1.8</version>
792
				</plugin>
793 794 795 796 797
					
        		<!-- cobertura 测试覆盖率统计插件 -->
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
C
Calvin 已提交
798
					<version>2.5.2</version>
799
				</plugin>
800 801 802 803 804

				<!-- war打包插件, 设定war包名称不带版本号 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
C
Calvin 已提交
805
					<version>2.4</version>
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
					<configuration>
						<warName>${project.artifactId}</warName>
					</configuration>
				</plugin>

				<!-- jar打包相关插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>2.4</version>
					<configuration>
						<archive>
							<manifest>
								<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							</manifest>
						</archive>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
C
Calvin 已提交
827
					<version>2.2.1</version>
828 829 830 831 832 833
				</plugin>

				<!-- clean插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-clean-plugin</artifactId>
834
					<version>2.5</version>
835 836 837 838 839 840
				</plugin>

				<!-- install插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-install-plugin</artifactId>
841
					<version>2.4</version>
842
				</plugin>
843
				
844
				<!-- enforcer插件, 避免被依赖的依赖引入过期的jar包 -->
845 846 847
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
848
					<version>1.3</version>
849 850 851 852 853 854 855 856
					<executions>
						<execution>
							<id>enforce-banned-dependencies</id>
							<goals>
								<goal>enforce</goal>
							</goals>
							<configuration>
								<rules>
857
									<requireMavenVersion>
858
                  						<version>3.0.3</version>
859 860 861 862
                					</requireMavenVersion>
                					<requireJavaVersion>
                  						<version>1.6</version>
                					</requireJavaVersion>
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877
									<bannedDependencies>
										<searchTransitive>true</searchTransitive>
										<excludes>
											<exclude>commons-logging</exclude>
											<exclude>aspectj:aspectj*</exclude>
											<exclude>org.springframework:2.*</exclude>
											<exclude>org.springframework:3.0.*</exclude>
										</excludes>
									</bannedDependencies>
								</rules>
								<fail>true</fail>
							</configuration>
						</execution>
					</executions>
				</plugin>
878 879 880 881 882 883 884 885 886 887 888 889

				<!-- jetty插件 -->
				<plugin>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-maven-plugin</artifactId>
					<version>${jetty.version}</version>
				</plugin>
				
				<!-- assembly插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
890
					<version>2.4</version>
891 892 893 894 895 896
				</plugin>

				<!-- dependency相关插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
C
Calvin 已提交
897
					<version>2.8</version>
898 899 900 901
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>versions-maven-plugin</artifactId>
C
Calvin 已提交
902
					<version>2.1</version>
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920
				</plugin>

				<!-- ant插件 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.7</version>
				</plugin>
				
				<!-- exec java 插件 -->
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2.1</version>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
921
	
922
	<profiles>
C
Calvin 已提交
923
		<!-- 执行@Category(Smoke.class)的TestCase -->
924
		<profile>
C
Calvin 已提交
925
			<id>run-smoke</id>
926 927 928 929 930 931
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
932
							<groups>org.springside.modules.test.category.Smoke</groups>
933
						</configuration>
C
Calvin 已提交
934
					</plugin>				
935 936 937
				</plugins>
			</build>
		</profile>
C
Calvin 已提交
938 939
		
		<!-- 忽略所有@Category(UnStable.class)的TestCase -->
940
		<profile>
C
Calvin 已提交
941
			<id>skip-unstable</id>
942 943 944 945 946 947
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
C
Calvin 已提交
948
							<excludedGroups>org.springside.modules.test.category.UnStable</excludedGroups>
949
						</configuration>
C
Calvin 已提交
950
					</plugin>				
951 952 953
				</plugins>
			</build>
		</profile>
C
Calvin 已提交
954 955
		
		<!-- 执行@Category(UnStable.class)的TestCase -->
956
		<profile>
C
Calvin 已提交
957
			<id>run-unstable</id>
958 959 960 961 962 963
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
C
Calvin 已提交
964
							<includedGroups>org.springside.modules.test.category.UnStable</includedGroups>
965 966 967 968 969 970
						</configuration>
					</plugin>				
				</plugins>
			</build>
		</profile>
	</profiles>
971
</project>