pom.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yihu</groupId>
  6. <artifactId>patient-co-wlyy</artifactId>
  7. <version>1.0.0</version>
  8. <packaging>war</packaging>
  9. <name>patient-co-wlyy</name>
  10. <properties>
  11. <!-- 主要依赖库的版本定义 -->
  12. <springside.version>4.2.3-GA</springside.version>
  13. <spring.version>4.2.6.RELEASE</spring.version>
  14. <hibernate.version>4.3.5.Final</hibernate.version>
  15. <spring-data-jpa.version>1.6.0.RELEASE</spring-data-jpa.version>
  16. <tomcat-jdbc.version>7.0.53</tomcat-jdbc.version>
  17. <sitemesh.version>2.4.2</sitemesh.version>
  18. <shiro.version>1.2.3</shiro.version>
  19. <hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
  20. <jackson.version>2.4.0</jackson.version>
  21. <aspectj.version>1.7.4</aspectj.version>
  22. <slf4j.version>1.7.7</slf4j.version>
  23. <logback.version>1.1.2</logback.version>
  24. <commons-lang3.version>3.3.2</commons-lang3.version>
  25. <guava.version>17.0</guava.version>
  26. <junit.version>4.11</junit.version>
  27. <assertj.version>1.6.1</assertj.version>
  28. <mockito.version>1.9.5</mockito.version>
  29. <selenium.version>2.42.2</selenium.version>
  30. <jetty.version>7.6.15.v20140411</jetty.version>
  31. <h2.version>1.3.176</h2.version>
  32. <!-- Plugin的属性定义 -->
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. <java.version>1.6</java.version>
  35. <!-- 项目属性 -->
  36. <!--
  37. <jdbc.driver.groupId>com.h2database</jdbc.driver.groupId>
  38. <jdbc.driver.artifactId>h2</jdbc.driver.artifactId>
  39. <jdbc.driver.version>${h2.version}</jdbc.driver.version>
  40. -->
  41. <jdbc.driver.groupId>mysql</jdbc.driver.groupId>
  42. <jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
  43. <jdbc.driver.version>5.1.22</jdbc.driver.version>
  44. </properties>
  45. <prerequisites>
  46. <maven>3.0.0</maven>
  47. </prerequisites>
  48. <!-- 设定插件仓库, 如有Nexus私服, 取消注释并指向正确的服务器地址.
  49. <pluginRepositories>
  50. <pluginRepository>
  51. <id>nexus</id>
  52. <name>Team Nexus Repository</name>
  53. <url>http://localhost:8081/nexus/content/groups/public</url>
  54. <snapshots>
  55. <enabled>false</enabled>
  56. </snapshots>
  57. </pluginRepository>
  58. </pluginRepositories>
  59. -->
  60. <!-- 依赖项定义 -->
  61. <dependencies>
  62. <!--Swagger-->
  63. <dependency>
  64. <groupId>io.springfox</groupId>
  65. <artifactId>springfox-swagger2</artifactId>
  66. <version>2.4.0</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>io.springfox</groupId>
  70. <artifactId>springfox-swagger-ui</artifactId>
  71. <version>2.4.0</version>
  72. </dependency>
  73. <!--Spring-->
  74. <dependency>
  75. <groupId>org.springframework</groupId>
  76. <artifactId>spring-context-support</artifactId>
  77. <version>${spring.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.poi</groupId>
  81. <artifactId>poi</artifactId>
  82. <version>3.15-beta1</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.axis</groupId>
  86. <artifactId>axis</artifactId>
  87. <version>1.4</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>axis</groupId>
  91. <artifactId>axis-jaxrpc</artifactId>
  92. <version>1.3</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.httpcomponents</groupId>
  96. <artifactId>httpclient</artifactId>
  97. <version>4.5.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>sehrCrypto</groupId>
  101. <artifactId>sehrCrypto</artifactId>
  102. <version>1.0.0</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.jdom</groupId>
  106. <artifactId>jdom</artifactId>
  107. <version>1.1.3</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.bouncycastle</groupId>
  111. <artifactId>bcprov-jdk16</artifactId>
  112. <version>1.46</version>
  113. </dependency>
  114. <!-- Apache Commons fileupload -->
  115. <dependency>
  116. <groupId>commons-fileupload</groupId>
  117. <artifactId>commons-fileupload</artifactId>
  118. <version>1.2.1</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.commons</groupId>
  122. <artifactId>commons-io</artifactId>
  123. <version>1.3.2</version>
  124. </dependency>
  125. <!-- SPRINGSIDE -->
  126. <dependency>
  127. <groupId>org.springside</groupId>
  128. <artifactId>springside-core</artifactId>
  129. <version>${springside.version}</version>
  130. </dependency>
  131. <!-- PERSISTENCE begin -->
  132. <!-- hibernate -->
  133. <dependency>
  134. <groupId>org.hibernate</groupId>
  135. <artifactId>hibernate-entitymanager</artifactId>
  136. <version>${hibernate.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.code.kaptcha</groupId>
  140. <artifactId>kaptcha</artifactId>
  141. <version>2.3</version>
  142. </dependency>
  143. <!-- spring data access -->
  144. <dependency>
  145. <groupId>org.springframework.data</groupId>
  146. <artifactId>spring-data-jpa</artifactId>
  147. <version>${spring-data-jpa.version}</version>
  148. </dependency>
  149. <!-- spring aop -->
  150. <dependency>
  151. <groupId>org.aspectj</groupId>
  152. <artifactId>aspectjrt</artifactId>
  153. <version>${aspectj.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.aspectj</groupId>
  157. <artifactId>aspectjweaver</artifactId>
  158. <version>${aspectj.version}</version>
  159. <scope>runtime</scope>
  160. </dependency>
  161. <!-- connection pool -->
  162. <dependency>
  163. <groupId>org.apache.tomcat</groupId>
  164. <artifactId>tomcat-jdbc</artifactId>
  165. <version>${tomcat-jdbc.version}</version>
  166. <scope>runtime</scope>
  167. </dependency>
  168. <!-- jdbc driver -->
  169. <dependency>
  170. <groupId>${jdbc.driver.groupId}</groupId>
  171. <artifactId>${jdbc.driver.artifactId}</artifactId>
  172. <version>${jdbc.driver.version}</version>
  173. <scope>runtime</scope>
  174. </dependency>
  175. <!-- PERSISTENCE end -->
  176. <!-- WEB begin -->
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-webmvc</artifactId>
  180. </dependency>
  181. <dependency>
  182. <groupId>opensymphony</groupId>
  183. <artifactId>sitemesh</artifactId>
  184. <version>${sitemesh.version}</version>
  185. <scope>runtime</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>javax.servlet</groupId>
  189. <artifactId>jstl</artifactId>
  190. <version>1.2</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>javax.servlet</groupId>
  194. <artifactId>javax.servlet-api</artifactId>
  195. <version>3.0.1</version>
  196. <scope>provided</scope>
  197. </dependency>
  198. <!-- WEB end -->
  199. <!-- SECURITY begin -->
  200. <dependency>
  201. <groupId>org.apache.shiro</groupId>
  202. <artifactId>shiro-spring</artifactId>
  203. <version>${shiro.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.apache.shiro</groupId>
  207. <artifactId>shiro-ehcache</artifactId>
  208. <version>${shiro.version}</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>commons-codec</groupId>
  212. <artifactId>commons-codec</artifactId>
  213. <version>1.9</version>
  214. </dependency>
  215. <!-- SECURITY end -->
  216. <!-- JSR303 BeanValidator -->
  217. <dependency>
  218. <groupId>org.hibernate</groupId>
  219. <artifactId>hibernate-validator</artifactId>
  220. <version>${hibernate-validator.version}</version>
  221. </dependency>
  222. <!-- JSON begin -->
  223. <dependency>
  224. <groupId>com.fasterxml.jackson.core</groupId>
  225. <artifactId>jackson-databind</artifactId>
  226. <version>${jackson.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.fasterxml.jackson.module</groupId>
  230. <artifactId>jackson-module-jaxb-annotations</artifactId>
  231. <version>${jackson.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.json</groupId>
  235. <artifactId>json</artifactId>
  236. <version>20160212</version>
  237. </dependency>
  238. <!-- JSON end -->
  239. <dependency>
  240. <groupId>net.sf.json-lib</groupId>
  241. <artifactId>json-lib</artifactId>
  242. <version>2.4</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>xom</groupId>
  246. <artifactId>xom</artifactId>
  247. <version>1.1</version>
  248. </dependency>
  249. <!-- LOGGING begin -->
  250. <dependency>
  251. <groupId>org.slf4j</groupId>
  252. <artifactId>slf4j-api</artifactId>
  253. <version>${slf4j.version}</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>ch.qos.logback</groupId>
  257. <artifactId>logback-classic</artifactId>
  258. <version>${logback.version}</version>
  259. <scope>runtime</scope>
  260. </dependency>
  261. <!-- 代码直接调用log4j会被桥接到slf4j -->
  262. <dependency>
  263. <groupId>org.slf4j</groupId>
  264. <artifactId>log4j-over-slf4j</artifactId>
  265. <version>${slf4j.version}</version>
  266. <scope>runtime</scope>
  267. </dependency>
  268. <!-- 代码直接调用common-logging会被桥接到slf4j -->
  269. <dependency>
  270. <groupId>org.slf4j</groupId>
  271. <artifactId>jcl-over-slf4j</artifactId>
  272. <version>${slf4j.version}</version>
  273. <scope>runtime</scope>
  274. </dependency>
  275. <!-- 代码直接调用java.util.logging会被桥接到slf4j -->
  276. <dependency>
  277. <groupId>org.slf4j</groupId>
  278. <artifactId>jul-to-slf4j</artifactId>
  279. <version>${slf4j.version}</version>
  280. <scope>runtime</scope>
  281. </dependency>
  282. <dependency>
  283. <groupId>com.googlecode.log4jdbc</groupId>
  284. <artifactId>log4jdbc</artifactId>
  285. <version>1.2</version>
  286. <scope>runtime</scope>
  287. </dependency>
  288. <!-- LOGGING end -->
  289. <!-- GENERAL UTILS begin -->
  290. <dependency>
  291. <groupId>org.apache.commons</groupId>
  292. <artifactId>commons-lang3</artifactId>
  293. <version>${commons-lang3.version}</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.google.guava</groupId>
  297. <artifactId>guava</artifactId>
  298. <version>${guava.version}</version>
  299. </dependency>
  300. <!-- GENERAL UTILS end -->
  301. <!-- TEST begin -->
  302. <dependency>
  303. <groupId>org.springside</groupId>
  304. <artifactId>springside-core</artifactId>
  305. <version>${springside.version}</version>
  306. <classifier>tests</classifier>
  307. <scope>test</scope>
  308. </dependency>
  309. <dependency>
  310. <groupId>junit</groupId>
  311. <artifactId>junit</artifactId>
  312. <version>${junit.version}</version>
  313. <scope>test</scope>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.assertj</groupId>
  317. <artifactId>assertj-core</artifactId>
  318. <version>${assertj.version}</version>
  319. <scope>test</scope>
  320. </dependency>
  321. <dependency>
  322. <groupId>org.mockito</groupId>
  323. <artifactId>mockito-core</artifactId>
  324. <version>${mockito.version}</version>
  325. <scope>test</scope>
  326. </dependency>
  327. <dependency>
  328. <groupId>org.springframework</groupId>
  329. <artifactId>spring-test</artifactId>
  330. <scope>test</scope>
  331. </dependency>
  332. <!-- selenium 2.0 -->
  333. <dependency>
  334. <groupId>org.seleniumhq.selenium</groupId>
  335. <artifactId>selenium-java</artifactId>
  336. <version>${selenium.version}</version>
  337. <scope>test</scope>
  338. <exclusions>
  339. <exclusion>
  340. <groupId>org.seleniumhq.selenium</groupId>
  341. <artifactId>selenium-htmlunit-driver</artifactId>
  342. </exclusion>
  343. <exclusion>
  344. <groupId>org.seleniumhq.selenium</groupId>
  345. <artifactId>selenium-android-driver</artifactId>
  346. </exclusion>
  347. <exclusion>
  348. <groupId>org.seleniumhq.selenium</groupId>
  349. <artifactId>selenium-iphone-driver</artifactId>
  350. </exclusion>
  351. <exclusion>
  352. <groupId>org.seleniumhq.selenium</groupId>
  353. <artifactId>selenium-safari-driver</artifactId>
  354. </exclusion>
  355. <exclusion>
  356. <groupId>commons-logging</groupId>
  357. <artifactId>commons-logging</artifactId>
  358. </exclusion>
  359. </exclusions>
  360. </dependency>
  361. <dependency>
  362. <groupId>org.seleniumhq.selenium</groupId>
  363. <artifactId>selenium-remote-driver</artifactId>
  364. <version>${selenium.version}</version>
  365. <scope>test</scope>
  366. <exclusions>
  367. <exclusion>
  368. <groupId>cglib</groupId>
  369. <artifactId>cglib-nodep</artifactId>
  370. </exclusion>
  371. <exclusion>
  372. <groupId>commons-logging</groupId>
  373. <artifactId>commons-logging</artifactId>
  374. </exclusion>
  375. </exclusions>
  376. </dependency>
  377. <!-- h2 如果生产数据库不是H2,解开下面的注释
  378. <dependency>
  379. <groupId>com.h2database</groupId>
  380. <artifactId>h2</artifactId>
  381. <version>${h2.version}</version>
  382. </dependency>
  383. -->
  384. <!-- jetty -->
  385. <dependency>
  386. <groupId>org.eclipse.jetty.aggregate</groupId>
  387. <artifactId>jetty-webapp</artifactId>
  388. <version>${jetty.version}</version>
  389. <scope>test</scope>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.eclipse.jetty</groupId>
  393. <artifactId>jetty-jsp</artifactId>
  394. <version>${jetty.version}</version>
  395. <scope>test</scope>
  396. </dependency>
  397. <dependency>
  398. <groupId>com.google.zxing</groupId>
  399. <artifactId>core</artifactId>
  400. <version>3.2.0</version>
  401. </dependency>
  402. <dependency>
  403. <groupId>com.google.zxing</groupId>
  404. <artifactId>javase</artifactId>
  405. <version>3.1.0</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>org.quartz-scheduler</groupId>
  409. <artifactId>quartz</artifactId>
  410. <version>2.2.3</version>
  411. </dependency>
  412. <dependency>
  413. <groupId>org.apache.tomcat</groupId>
  414. <artifactId>tomcat-jdbc</artifactId>
  415. <version>8.0.28</version>
  416. <scope>provided</scope>
  417. </dependency>
  418. <!-- spring data的结合 -->
  419. <dependency>
  420. <groupId>org.springframework.data</groupId>
  421. <artifactId>spring-data-redis</artifactId>
  422. <version>1.7.2.RELEASE</version>
  423. </dependency>
  424. <dependency>
  425. <groupId>redis.clients</groupId>
  426. <artifactId>jedis</artifactId>
  427. <version>2.8.1</version>
  428. </dependency>
  429. <!-- TEST end -->
  430. </dependencies>
  431. <dependencyManagement>
  432. <dependencies>
  433. <dependency>
  434. <groupId>org.springframework</groupId>
  435. <artifactId>spring-framework-bom</artifactId>
  436. <version>${spring.version}</version>
  437. <type>pom</type>
  438. <scope>import</scope>
  439. </dependency>
  440. <dependency>
  441. <groupId>net.sf.ehcache</groupId>
  442. <artifactId>ehcache-core</artifactId>
  443. <version>2.6.9</version>
  444. </dependency>
  445. </dependencies>
  446. </dependencyManagement>
  447. <build>
  448. <plugins>
  449. <plugin>
  450. <groupId>org.apache.maven.plugins</groupId>
  451. <artifactId>maven-compiler-plugin</artifactId>
  452. <configuration>
  453. <source>1.8</source>
  454. <target>1.8</target>
  455. <compilerArguments>
  456. <verbose/>
  457. <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
  458. </compilerArguments>
  459. </configuration>
  460. </plugin>
  461. <!-- war打包插件, 设定war包名称不带版本号 -->
  462. <!--<plugin>-->
  463. <!--<groupId>org.apache.maven.plugins</groupId>-->
  464. <!--<artifactId>maven-war-plugin</artifactId>-->
  465. <!--<version>2.4</version>-->
  466. <!--<configuration>-->
  467. <!--<warName>${project.artifactId}</warName>-->
  468. <!--</configuration>-->
  469. <!--</plugin>-->
  470. <!-- test插件, 仅测试名称为*Test的类,使用支持分组测试的surefire-junit47 driver -->
  471. <!--<plugin>-->
  472. <!--<groupId>org.apache.maven.plugins</groupId>-->
  473. <!--<artifactId>maven-surefire-plugin</artifactId>-->
  474. <!--<version>2.16</version>-->
  475. <!--<configuration>-->
  476. <!--<includes>-->
  477. <!--<include>**/*Test.java</include>-->
  478. <!--</includes>-->
  479. <!--<argLine>-Xmx256M</argLine>-->
  480. <!--</configuration>-->
  481. <!--<dependencies>-->
  482. <!--<dependency>-->
  483. <!--<groupId>org.apache.maven.surefire</groupId>-->
  484. <!--<artifactId>surefire-junit47</artifactId>-->
  485. <!--<version>2.16</version>-->
  486. <!--</dependency>-->
  487. <!--</dependencies>-->
  488. <!--</plugin>-->
  489. <!-- 增加functional test的Source目录 -->
  490. <!--<plugin>-->
  491. <!--<groupId>org.codehaus.mojo</groupId>-->
  492. <!--<artifactId>build-helper-maven-plugin</artifactId>-->
  493. <!--<version>1.8</version>-->
  494. <!--<executions>-->
  495. <!--<execution>-->
  496. <!--<id>add-functional-source</id>-->
  497. <!--<phase>generate-sources</phase>-->
  498. <!--<goals>-->
  499. <!--<goal>add-test-source</goal>-->
  500. <!--</goals>-->
  501. <!--<configuration>-->
  502. <!--<sources>-->
  503. <!--<source>src/test/functional</source>-->
  504. <!--</sources>-->
  505. <!--</configuration>-->
  506. <!--</execution>-->
  507. <!--</executions>-->
  508. <!--</plugin>-->
  509. <!-- cobertura插件, 设置不需要计算覆盖率的类 -->
  510. <!--<plugin>-->
  511. <!--<groupId>org.codehaus.mojo</groupId>-->
  512. <!--<artifactId>cobertura-maven-plugin</artifactId>-->
  513. <!--<version>2.6</version>-->
  514. <!--<configuration>-->
  515. <!--<instrumentation>-->
  516. <!--<excludes>-->
  517. <!--<exclude>**/entity/**/*.class</exclude>-->
  518. <!--<exclude>**/*Controller.class</exclude>-->
  519. <!--</excludes>-->
  520. <!--</instrumentation>-->
  521. <!--</configuration>-->
  522. <!--</plugin>-->
  523. <!-- enforcer插件, 避免被依赖的依赖引入过期的jar�? -->
  524. <!--<plugin>-->
  525. <!--<groupId>org.apache.maven.plugins</groupId>-->
  526. <!--<artifactId>maven-enforcer-plugin</artifactId>-->
  527. <!--<version>1.3.1</version>-->
  528. <!--<executions>-->
  529. <!--<execution>-->
  530. <!--<id>enforce-banned-dependencies</id>-->
  531. <!--<goals>-->
  532. <!--<goal>enforce</goal>-->
  533. <!--</goals>-->
  534. <!--<configuration>-->
  535. <!--<rules>-->
  536. <!--<requireMavenVersion>-->
  537. <!--<version>3.0.3</version>-->
  538. <!--</requireMavenVersion>-->
  539. <!--<requireJavaVersion>-->
  540. <!--<version>1.6</version>-->
  541. <!--</requireJavaVersion>-->
  542. <!--<bannedDependencies>-->
  543. <!--<searchTransitive>true</searchTransitive>-->
  544. <!--<excludes>-->
  545. <!--<exclude>commons-logging</exclude>-->
  546. <!--<exclude>aspectj:aspectj*</exclude>-->
  547. <!--<exclude>org.springframework</exclude>-->
  548. <!--</excludes>-->
  549. <!--<includes>-->
  550. <!--<include>org.springframework:*:4.0.*</include>-->
  551. <!--</includes>-->
  552. <!--</bannedDependencies>-->
  553. <!--</rules>-->
  554. <!--<fail>true</fail>-->
  555. <!--</configuration>-->
  556. <!--</execution>-->
  557. <!--</executions>-->
  558. <!--</plugin>-->
  559. <!-- jetty插件, 设定context path与spring profile -->
  560. <!--<plugin>-->
  561. <!--<groupId>org.mortbay.jetty</groupId>-->
  562. <!--<artifactId>jetty-maven-plugin</artifactId>-->
  563. <!--<version>${jetty.version}</version>-->
  564. <!--<configuration>-->
  565. <!--<systemProperties>-->
  566. <!--<systemProperty>-->
  567. <!--<name>spring.profiles.active</name>-->
  568. <!--<value>development</value>-->
  569. <!--</systemProperty>-->
  570. <!--</systemProperties>-->
  571. <!--<useTestClasspath>true</useTestClasspath>-->
  572. <!--<webAppConfig>-->
  573. <!--<contextPath>/${project.artifactId}</contextPath>-->
  574. <!--</webAppConfig>-->
  575. <!--</configuration>-->
  576. <!--</plugin>-->
  577. <!-- resources插件 -->
  578. <!--<plugin>-->
  579. <!--<groupId>org.apache.maven.plugins</groupId>-->
  580. <!--<artifactId>maven-resources-plugin</artifactId>-->
  581. <!--<version>2.6</version>-->
  582. <!--</plugin>-->
  583. <!--&lt;!&ndash; install插件 &ndash;&gt;-->
  584. <!--<plugin>-->
  585. <!--<groupId>org.apache.maven.plugins</groupId>-->
  586. <!--<artifactId>maven-install-plugin</artifactId>-->
  587. <!--<version>2.5.1</version>-->
  588. <!--</plugin>-->
  589. <!--&lt;!&ndash; ant插件 &ndash;&gt;-->
  590. <!--<plugin>-->
  591. <!--<groupId>org.apache.maven.plugins</groupId>-->
  592. <!--<artifactId>maven-antrun-plugin</artifactId>-->
  593. <!--<version>1.7</version>-->
  594. <!--</plugin>-->
  595. <plugin>
  596. <groupId>org.apache.maven.plugins</groupId>
  597. <artifactId>maven-install-plugin</artifactId>
  598. <version>2.4</version>
  599. <executions>
  600. <execution>
  601. <phase>initialize</phase>
  602. <goals>
  603. <goal>install-file</goal>
  604. </goals>
  605. <configuration>
  606. <groupId>com.google.code.kaptcha</groupId>
  607. <artifactId>kaptcha</artifactId>
  608. <version>2.3</version>
  609. <packaging>jar</packaging>
  610. <file>${basedir}/src/main/resources/kaptcha-2.3.2.jar</file>
  611. </configuration>
  612. </execution>
  613. </executions>
  614. </plugin>
  615. </plugins>
  616. <!--<pluginManagement>-->
  617. <!--<plugins>-->
  618. <!--&lt;!&ndash;This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.&ndash;&gt;-->
  619. <!--<plugin>-->
  620. <!--<groupId>org.eclipse.m2e</groupId>-->
  621. <!--<artifactId>lifecycle-mapping</artifactId>-->
  622. <!--<version>1.0.0</version>-->
  623. <!--<configuration>-->
  624. <!--<lifecycleMappingMetadata>-->
  625. <!--<pluginExecutions>-->
  626. <!--<pluginExecution>-->
  627. <!--<pluginExecutionFilter>-->
  628. <!--<groupId>-->
  629. <!--org.codehaus.mojo-->
  630. <!--</groupId>-->
  631. <!--<artifactId>-->
  632. <!--build-helper-maven-plugin-->
  633. <!--</artifactId>-->
  634. <!--<versionRange>-->
  635. <!--[1.8,)-->
  636. <!--</versionRange>-->
  637. <!--<goals>-->
  638. <!--<goal>add-test-source</goal>-->
  639. <!--</goals>-->
  640. <!--</pluginExecutionFilter>-->
  641. <!--<action>-->
  642. <!--<ignore></ignore>-->
  643. <!--</action>-->
  644. <!--</pluginExecution>-->
  645. <!--</pluginExecutions>-->
  646. <!--</lifecycleMappingMetadata>-->
  647. <!--</configuration>-->
  648. <!--</plugin>-->
  649. <!--</plugins>-->
  650. <!--</pluginManagement>-->
  651. </build>
  652. <profiles>
  653. <!-- 执行functional test -->
  654. <profile>
  655. <id>functional-test</id>
  656. <build>
  657. <plugins>
  658. <plugin>
  659. <groupId>org.apache.maven.plugins</groupId>
  660. <artifactId>maven-surefire-plugin</artifactId>
  661. <configuration>
  662. <argLine>-Xmx256M -XX:MaxPermSize=128m</argLine>
  663. <includes>
  664. <include>**/*FT.java</include>
  665. </includes>
  666. <!-- 支持taglib tld文件查找的必要设置 -->
  667. <useSystemClassLoader>false</useSystemClassLoader>
  668. <!-- 将mvn命令行传入的selenium driver参数传入surefire的JVM -->
  669. <systemPropertyVariables>
  670. <selenium.driver>${selenium.driver}</selenium.driver>
  671. </systemPropertyVariables>
  672. </configuration>
  673. </plugin>
  674. </plugins>
  675. </build>
  676. </profile>
  677. <!-- 执行@Category(Smoke.class)的TestCase -->
  678. <profile>
  679. <id>run-smoke</id>
  680. <build>
  681. <plugins>
  682. <plugin>
  683. <groupId>org.apache.maven.plugins</groupId>
  684. <artifactId>maven-surefire-plugin</artifactId>
  685. <configuration>
  686. <groups>org.springside.modules.test.category.Smoke</groups>
  687. </configuration>
  688. </plugin>
  689. </plugins>
  690. </build>
  691. </profile>
  692. <!-- 刷新开发环境数据库 -->
  693. <profile>
  694. <id>refresh-db</id>
  695. <build>
  696. <plugins>
  697. <plugin>
  698. <groupId>org.apache.maven.plugins</groupId>
  699. <artifactId>maven-antrun-plugin</artifactId>
  700. <configuration>
  701. <target>
  702. <property file="src/main/resources/application.development.properties"/>
  703. <property file="src/main/resources/application.properties"/>
  704. <sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"
  705. password="${jdbc.password}" onerror="continue"
  706. encoding="${project.build.sourceEncoding}">
  707. <classpath refid="maven.test.classpath"/>
  708. <transaction src="src/main/resources/sql/h2/schema.sql"/>
  709. <transaction src="src/test/resources/data/h2/import-data.sql"/>
  710. </sql>
  711. </target>
  712. </configuration>
  713. </plugin>
  714. </plugins>
  715. </build>
  716. </profile>
  717. </profiles>
  718. </project>