pom.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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>wlyy</artifactId>
  7. <version>1.0.0</version>
  8. <packaging>pom</packaging>
  9. <name>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. <!-- LOGGING begin -->
  240. <dependency>
  241. <groupId>org.slf4j</groupId>
  242. <artifactId>slf4j-api</artifactId>
  243. <version>${slf4j.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>ch.qos.logback</groupId>
  247. <artifactId>logback-classic</artifactId>
  248. <version>${logback.version}</version>
  249. <scope>runtime</scope>
  250. </dependency>
  251. <!-- 代码直接调用log4j会被桥接到slf4j -->
  252. <dependency>
  253. <groupId>org.slf4j</groupId>
  254. <artifactId>log4j-over-slf4j</artifactId>
  255. <version>${slf4j.version}</version>
  256. <scope>runtime</scope>
  257. </dependency>
  258. <!-- 代码直接调用common-logging会被桥接到slf4j -->
  259. <dependency>
  260. <groupId>org.slf4j</groupId>
  261. <artifactId>jcl-over-slf4j</artifactId>
  262. <version>${slf4j.version}</version>
  263. <scope>runtime</scope>
  264. </dependency>
  265. <!-- 代码直接调用java.util.logging会被桥接到slf4j -->
  266. <dependency>
  267. <groupId>org.slf4j</groupId>
  268. <artifactId>jul-to-slf4j</artifactId>
  269. <version>${slf4j.version}</version>
  270. <scope>runtime</scope>
  271. </dependency>
  272. <dependency>
  273. <groupId>com.googlecode.log4jdbc</groupId>
  274. <artifactId>log4jdbc</artifactId>
  275. <version>1.2</version>
  276. <scope>runtime</scope>
  277. </dependency>
  278. <!-- LOGGING end -->
  279. <!-- GENERAL UTILS begin -->
  280. <dependency>
  281. <groupId>org.apache.commons</groupId>
  282. <artifactId>commons-lang3</artifactId>
  283. <version>${commons-lang3.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.google.guava</groupId>
  287. <artifactId>guava</artifactId>
  288. <version>${guava.version}</version>
  289. </dependency>
  290. <!-- GENERAL UTILS end -->
  291. <!-- TEST begin -->
  292. <dependency>
  293. <groupId>org.springside</groupId>
  294. <artifactId>springside-core</artifactId>
  295. <version>${springside.version}</version>
  296. <classifier>tests</classifier>
  297. <scope>test</scope>
  298. </dependency>
  299. <dependency>
  300. <groupId>junit</groupId>
  301. <artifactId>junit</artifactId>
  302. <version>${junit.version}</version>
  303. <scope>test</scope>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.assertj</groupId>
  307. <artifactId>assertj-core</artifactId>
  308. <version>${assertj.version}</version>
  309. <scope>test</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.mockito</groupId>
  313. <artifactId>mockito-core</artifactId>
  314. <version>${mockito.version}</version>
  315. <scope>test</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>org.springframework</groupId>
  319. <artifactId>spring-test</artifactId>
  320. <scope>test</scope>
  321. </dependency>
  322. <!-- selenium 2.0 -->
  323. <dependency>
  324. <groupId>org.seleniumhq.selenium</groupId>
  325. <artifactId>selenium-java</artifactId>
  326. <version>${selenium.version}</version>
  327. <scope>test</scope>
  328. <exclusions>
  329. <exclusion>
  330. <groupId>org.seleniumhq.selenium</groupId>
  331. <artifactId>selenium-htmlunit-driver</artifactId>
  332. </exclusion>
  333. <exclusion>
  334. <groupId>org.seleniumhq.selenium</groupId>
  335. <artifactId>selenium-android-driver</artifactId>
  336. </exclusion>
  337. <exclusion>
  338. <groupId>org.seleniumhq.selenium</groupId>
  339. <artifactId>selenium-iphone-driver</artifactId>
  340. </exclusion>
  341. <exclusion>
  342. <groupId>org.seleniumhq.selenium</groupId>
  343. <artifactId>selenium-safari-driver</artifactId>
  344. </exclusion>
  345. <exclusion>
  346. <groupId>commons-logging</groupId>
  347. <artifactId>commons-logging</artifactId>
  348. </exclusion>
  349. </exclusions>
  350. </dependency>
  351. <dependency>
  352. <groupId>org.seleniumhq.selenium</groupId>
  353. <artifactId>selenium-remote-driver</artifactId>
  354. <version>${selenium.version}</version>
  355. <scope>test</scope>
  356. <exclusions>
  357. <exclusion>
  358. <groupId>cglib</groupId>
  359. <artifactId>cglib-nodep</artifactId>
  360. </exclusion>
  361. <exclusion>
  362. <groupId>commons-logging</groupId>
  363. <artifactId>commons-logging</artifactId>
  364. </exclusion>
  365. </exclusions>
  366. </dependency>
  367. <!-- h2 如果生产数据库不是H2,解开下面的注释
  368. <dependency>
  369. <groupId>com.h2database</groupId>
  370. <artifactId>h2</artifactId>
  371. <version>${h2.version}</version>
  372. </dependency>
  373. -->
  374. <!-- jetty -->
  375. <dependency>
  376. <groupId>org.eclipse.jetty.aggregate</groupId>
  377. <artifactId>jetty-webapp</artifactId>
  378. <version>${jetty.version}</version>
  379. <scope>test</scope>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.eclipse.jetty</groupId>
  383. <artifactId>jetty-jsp</artifactId>
  384. <version>${jetty.version}</version>
  385. <scope>test</scope>
  386. </dependency>
  387. <dependency>
  388. <groupId>com.google.zxing</groupId>
  389. <artifactId>core</artifactId>
  390. <version>3.2.0</version>
  391. </dependency>
  392. <dependency>
  393. <groupId>com.google.zxing</groupId>
  394. <artifactId>javase</artifactId>
  395. <version>3.1.0</version>
  396. </dependency>
  397. <dependency>
  398. <groupId>org.quartz-scheduler</groupId>
  399. <artifactId>quartz</artifactId>
  400. <version>2.0.1</version>
  401. </dependency>
  402. <dependency>
  403. <groupId>org.apache.tomcat</groupId>
  404. <artifactId>tomcat-jdbc</artifactId>
  405. <version>8.0.28</version>
  406. <scope>provided</scope>
  407. </dependency>
  408. <!-- spring data的结合 -->
  409. <dependency>
  410. <groupId>org.springframework.data</groupId>
  411. <artifactId>spring-data-redis</artifactId>
  412. <version>1.7.2.RELEASE</version>
  413. </dependency>
  414. <dependency>
  415. <groupId>redis.clients</groupId>
  416. <artifactId>jedis</artifactId>
  417. <version>2.8.1</version>
  418. </dependency>
  419. <!-- TEST end -->
  420. </dependencies>
  421. <dependencyManagement>
  422. <dependencies>
  423. <dependency>
  424. <groupId>org.springframework</groupId>
  425. <artifactId>spring-framework-bom</artifactId>
  426. <version>${spring.version}</version>
  427. <type>pom</type>
  428. <scope>import</scope>
  429. </dependency>
  430. <dependency>
  431. <groupId>net.sf.ehcache</groupId>
  432. <artifactId>ehcache-core</artifactId>
  433. <version>2.6.9</version>
  434. </dependency>
  435. </dependencies>
  436. </dependencyManagement>
  437. <build>
  438. <plugins>
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-compiler-plugin</artifactId>
  442. <configuration>
  443. <source>1.8</source>
  444. <target>1.8</target>
  445. <compilerArguments>
  446. <verbose/>
  447. <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
  448. </compilerArguments>
  449. </configuration>
  450. </plugin>
  451. <!-- war打包插件, 设定war包名称不带版本号 -->
  452. <!--<plugin>-->
  453. <!--<groupId>org.apache.maven.plugins</groupId>-->
  454. <!--<artifactId>maven-war-plugin</artifactId>-->
  455. <!--<version>2.4</version>-->
  456. <!--<configuration>-->
  457. <!--<warName>${project.artifactId}</warName>-->
  458. <!--</configuration>-->
  459. <!--</plugin>-->
  460. <!-- test插件, 仅测试名称为*Test的类,使用支持分组测试的surefire-junit47 driver -->
  461. <!--<plugin>-->
  462. <!--<groupId>org.apache.maven.plugins</groupId>-->
  463. <!--<artifactId>maven-surefire-plugin</artifactId>-->
  464. <!--<version>2.16</version>-->
  465. <!--<configuration>-->
  466. <!--<includes>-->
  467. <!--<include>**/*Test.java</include>-->
  468. <!--</includes>-->
  469. <!--<argLine>-Xmx256M</argLine>-->
  470. <!--</configuration>-->
  471. <!--<dependencies>-->
  472. <!--<dependency>-->
  473. <!--<groupId>org.apache.maven.surefire</groupId>-->
  474. <!--<artifactId>surefire-junit47</artifactId>-->
  475. <!--<version>2.16</version>-->
  476. <!--</dependency>-->
  477. <!--</dependencies>-->
  478. <!--</plugin>-->
  479. <!-- 增加functional test的Source目录 -->
  480. <!--<plugin>-->
  481. <!--<groupId>org.codehaus.mojo</groupId>-->
  482. <!--<artifactId>build-helper-maven-plugin</artifactId>-->
  483. <!--<version>1.8</version>-->
  484. <!--<executions>-->
  485. <!--<execution>-->
  486. <!--<id>add-functional-source</id>-->
  487. <!--<phase>generate-sources</phase>-->
  488. <!--<goals>-->
  489. <!--<goal>add-test-source</goal>-->
  490. <!--</goals>-->
  491. <!--<configuration>-->
  492. <!--<sources>-->
  493. <!--<source>src/test/functional</source>-->
  494. <!--</sources>-->
  495. <!--</configuration>-->
  496. <!--</execution>-->
  497. <!--</executions>-->
  498. <!--</plugin>-->
  499. <!-- cobertura插件, 设置不需要计算覆盖率的类 -->
  500. <!--<plugin>-->
  501. <!--<groupId>org.codehaus.mojo</groupId>-->
  502. <!--<artifactId>cobertura-maven-plugin</artifactId>-->
  503. <!--<version>2.6</version>-->
  504. <!--<configuration>-->
  505. <!--<instrumentation>-->
  506. <!--<excludes>-->
  507. <!--<exclude>**/entity/**/*.class</exclude>-->
  508. <!--<exclude>**/*Controller.class</exclude>-->
  509. <!--</excludes>-->
  510. <!--</instrumentation>-->
  511. <!--</configuration>-->
  512. <!--</plugin>-->
  513. <!-- enforcer插件, 避免被依赖的依赖引入过期的jar�? -->
  514. <!--<plugin>-->
  515. <!--<groupId>org.apache.maven.plugins</groupId>-->
  516. <!--<artifactId>maven-enforcer-plugin</artifactId>-->
  517. <!--<version>1.3.1</version>-->
  518. <!--<executions>-->
  519. <!--<execution>-->
  520. <!--<id>enforce-banned-dependencies</id>-->
  521. <!--<goals>-->
  522. <!--<goal>enforce</goal>-->
  523. <!--</goals>-->
  524. <!--<configuration>-->
  525. <!--<rules>-->
  526. <!--<requireMavenVersion>-->
  527. <!--<version>3.0.3</version>-->
  528. <!--</requireMavenVersion>-->
  529. <!--<requireJavaVersion>-->
  530. <!--<version>1.6</version>-->
  531. <!--</requireJavaVersion>-->
  532. <!--<bannedDependencies>-->
  533. <!--<searchTransitive>true</searchTransitive>-->
  534. <!--<excludes>-->
  535. <!--<exclude>commons-logging</exclude>-->
  536. <!--<exclude>aspectj:aspectj*</exclude>-->
  537. <!--<exclude>org.springframework</exclude>-->
  538. <!--</excludes>-->
  539. <!--<includes>-->
  540. <!--<include>org.springframework:*:4.0.*</include>-->
  541. <!--</includes>-->
  542. <!--</bannedDependencies>-->
  543. <!--</rules>-->
  544. <!--<fail>true</fail>-->
  545. <!--</configuration>-->
  546. <!--</execution>-->
  547. <!--</executions>-->
  548. <!--</plugin>-->
  549. <!-- jetty插件, 设定context path与spring profile -->
  550. <!--<plugin>-->
  551. <!--<groupId>org.mortbay.jetty</groupId>-->
  552. <!--<artifactId>jetty-maven-plugin</artifactId>-->
  553. <!--<version>${jetty.version}</version>-->
  554. <!--<configuration>-->
  555. <!--<systemProperties>-->
  556. <!--<systemProperty>-->
  557. <!--<name>spring.profiles.active</name>-->
  558. <!--<value>development</value>-->
  559. <!--</systemProperty>-->
  560. <!--</systemProperties>-->
  561. <!--<useTestClasspath>true</useTestClasspath>-->
  562. <!--<webAppConfig>-->
  563. <!--<contextPath>/${project.artifactId}</contextPath>-->
  564. <!--</webAppConfig>-->
  565. <!--</configuration>-->
  566. <!--</plugin>-->
  567. <!-- resources插件 -->
  568. <!--<plugin>-->
  569. <!--<groupId>org.apache.maven.plugins</groupId>-->
  570. <!--<artifactId>maven-resources-plugin</artifactId>-->
  571. <!--<version>2.6</version>-->
  572. <!--</plugin>-->
  573. <!--&lt;!&ndash; install插件 &ndash;&gt;-->
  574. <!--<plugin>-->
  575. <!--<groupId>org.apache.maven.plugins</groupId>-->
  576. <!--<artifactId>maven-install-plugin</artifactId>-->
  577. <!--<version>2.5.1</version>-->
  578. <!--</plugin>-->
  579. <!--&lt;!&ndash; ant插件 &ndash;&gt;-->
  580. <!--<plugin>-->
  581. <!--<groupId>org.apache.maven.plugins</groupId>-->
  582. <!--<artifactId>maven-antrun-plugin</artifactId>-->
  583. <!--<version>1.7</version>-->
  584. <!--</plugin>-->
  585. <plugin>
  586. <groupId>org.apache.maven.plugins</groupId>
  587. <artifactId>maven-install-plugin</artifactId>
  588. <version>2.4</version>
  589. <executions>
  590. <execution>
  591. <phase>initialize</phase>
  592. <goals>
  593. <goal>install-file</goal>
  594. </goals>
  595. <configuration>
  596. <groupId>com.google.code.kaptcha</groupId>
  597. <artifactId>kaptcha</artifactId>
  598. <version>2.3</version>
  599. <packaging>jar</packaging>
  600. <file>${basedir}/src/main/resources/kaptcha-2.3.2.jar</file>
  601. </configuration>
  602. </execution>
  603. </executions>
  604. </plugin>
  605. </plugins>
  606. <!--<pluginManagement>-->
  607. <!--<plugins>-->
  608. <!--&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;-->
  609. <!--<plugin>-->
  610. <!--<groupId>org.eclipse.m2e</groupId>-->
  611. <!--<artifactId>lifecycle-mapping</artifactId>-->
  612. <!--<version>1.0.0</version>-->
  613. <!--<configuration>-->
  614. <!--<lifecycleMappingMetadata>-->
  615. <!--<pluginExecutions>-->
  616. <!--<pluginExecution>-->
  617. <!--<pluginExecutionFilter>-->
  618. <!--<groupId>-->
  619. <!--org.codehaus.mojo-->
  620. <!--</groupId>-->
  621. <!--<artifactId>-->
  622. <!--build-helper-maven-plugin-->
  623. <!--</artifactId>-->
  624. <!--<versionRange>-->
  625. <!--[1.8,)-->
  626. <!--</versionRange>-->
  627. <!--<goals>-->
  628. <!--<goal>add-test-source</goal>-->
  629. <!--</goals>-->
  630. <!--</pluginExecutionFilter>-->
  631. <!--<action>-->
  632. <!--<ignore></ignore>-->
  633. <!--</action>-->
  634. <!--</pluginExecution>-->
  635. <!--</pluginExecutions>-->
  636. <!--</lifecycleMappingMetadata>-->
  637. <!--</configuration>-->
  638. <!--</plugin>-->
  639. <!--</plugins>-->
  640. <!--</pluginManagement>-->
  641. </build>
  642. <profiles>
  643. <!-- 执行functional test -->
  644. <profile>
  645. <id>functional-test</id>
  646. <build>
  647. <plugins>
  648. <plugin>
  649. <groupId>org.apache.maven.plugins</groupId>
  650. <artifactId>maven-surefire-plugin</artifactId>
  651. <configuration>
  652. <argLine>-Xmx256M -XX:MaxPermSize=128m</argLine>
  653. <includes>
  654. <include>**/*FT.java</include>
  655. </includes>
  656. <!-- 支持taglib tld文件查找的必要设置 -->
  657. <useSystemClassLoader>false</useSystemClassLoader>
  658. <!-- 将mvn命令行传入的selenium driver参数传入surefire的JVM -->
  659. <systemPropertyVariables>
  660. <selenium.driver>${selenium.driver}</selenium.driver>
  661. </systemPropertyVariables>
  662. </configuration>
  663. </plugin>
  664. </plugins>
  665. </build>
  666. </profile>
  667. <!-- 执行@Category(Smoke.class)的TestCase -->
  668. <profile>
  669. <id>run-smoke</id>
  670. <build>
  671. <plugins>
  672. <plugin>
  673. <groupId>org.apache.maven.plugins</groupId>
  674. <artifactId>maven-surefire-plugin</artifactId>
  675. <configuration>
  676. <groups>org.springside.modules.test.category.Smoke</groups>
  677. </configuration>
  678. </plugin>
  679. </plugins>
  680. </build>
  681. </profile>
  682. <!-- 刷新开发环境数据库 -->
  683. <profile>
  684. <id>refresh-db</id>
  685. <build>
  686. <plugins>
  687. <plugin>
  688. <groupId>org.apache.maven.plugins</groupId>
  689. <artifactId>maven-antrun-plugin</artifactId>
  690. <configuration>
  691. <target>
  692. <property file="src/main/resources/application.development.properties"/>
  693. <property file="src/main/resources/application.properties"/>
  694. <sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"
  695. password="${jdbc.password}" onerror="continue"
  696. encoding="${project.build.sourceEncoding}">
  697. <classpath refid="maven.test.classpath"/>
  698. <transaction src="src/main/resources/sql/h2/schema.sql"/>
  699. <transaction src="src/test/resources/data/h2/import-data.sql"/>
  700. </sql>
  701. </target>
  702. </configuration>
  703. </plugin>
  704. </plugins>
  705. </build>
  706. </profile>
  707. </profiles>
  708. </project>