pom.xml 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  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.thinkgem.jeesite</groupId>
  6. <artifactId>RecruitmentService</artifactId>
  7. <version>1.2.7</version>
  8. <packaging>war</packaging>
  9. <name>JeeSite</name>
  10. <url>http://thinkgem.github.com/jeesite</url>
  11. <inceptionYear>2012-2016</inceptionYear>
  12. <!-- 项目属性 -->
  13. <properties>
  14. <!-- main version setting -->
  15. <spring.version>4.1.9.RELEASE</spring.version>
  16. <validator.version>5.2.4.Final</validator.version>
  17. <mybatis.version>3.2.8</mybatis.version>
  18. <mybatis-spring.version>1.2.3</mybatis-spring.version>
  19. <druid.version>1.0.18</druid.version>
  20. <ehcache.version>2.6.11</ehcache.version>
  21. <ehcache-web.version>2.0.4</ehcache-web.version>
  22. <shiro.version>1.2.3</shiro.version>
  23. <sitemesh.version>2.4.2</sitemesh.version>
  24. <activiti.version>5.21.0</activiti.version>
  25. <!-- tools version setting -->
  26. <slf4j.version>1.7.7</slf4j.version>
  27. <commons-lang3.version>3.3.2</commons-lang3.version>
  28. <commons-io.version>2.4</commons-io.version>
  29. <commons-codec.version>1.9</commons-codec.version>
  30. <commons-fileupload.version>1.3.3</commons-fileupload.version>
  31. <commons-beanutils.version>1.9.1</commons-beanutils.version>
  32. <jackson.version>2.2.3</jackson.version>
  33. <xstream.version>1.4.7</xstream.version>
  34. <guava.version>17.0</guava.version>
  35. <dozer.version>5.5.1</dozer.version>
  36. <poi.version>3.9</poi.version>
  37. <freemarker.version>2.3.20</freemarker.version>
  38. <!-- jdbc driver setting -->
  39. <mysql.driver.version>8.0.29</mysql.driver.version>
  40. <oracle.driver.version>10.2.0.4.0</oracle.driver.version>
  41. <mssql.driver.version>1.3.1</mssql.driver.version>
  42. <!-- environment setting -->
  43. <jdk.version>1.7</jdk.version>
  44. <tomcat.version>2.2</tomcat.version>
  45. <jetty.version>7.6.14.v20131031</jetty.version>
  46. <webserver.port>8181</webserver.port>
  47. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  48. <downloadSources>true</downloadSources>
  49. </properties>
  50. <!-- 设定主仓库,按设定顺序进行查找。 -->
  51. <repositories>
  52. <repository>
  53. <id>jeesite-repos</id>
  54. <name>Jeesite Repository</name>
  55. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  56. </repository>
  57. </repositories>
  58. <!-- 设定插件仓库 -->
  59. <pluginRepositories>
  60. <pluginRepository>
  61. <id>jeesite-repos</id>
  62. <name>Jeesite Repository</name>
  63. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  64. </pluginRepository>
  65. </pluginRepositories>
  66. <!-- 依赖项定义 -->
  67. <dependencies>
  68. <!-- SPRING begin -->
  69. <dependency>
  70. <groupId>org.springframework</groupId>
  71. <artifactId>spring-core</artifactId>
  72. <version>${spring.version}</version>
  73. <exclusions>
  74. <exclusion>
  75. <groupId>commons-logging</groupId>
  76. <artifactId>commons-logging</artifactId>
  77. </exclusion>
  78. </exclusions>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework</groupId>
  82. <artifactId>spring-beans</artifactId>
  83. <version>${spring.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework</groupId>
  87. <artifactId>spring-context</artifactId>
  88. <version>${spring.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework</groupId>
  92. <artifactId>spring-context-support</artifactId>
  93. <version>${spring.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework</groupId>
  97. <artifactId>spring-aop</artifactId>
  98. <version>${spring.version}</version>
  99. <exclusions>
  100. <exclusion>
  101. <groupId>commons-logging</groupId>
  102. <artifactId>commons-logging</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework</groupId>
  108. <artifactId>spring-tx</artifactId>
  109. <version>${spring.version}</version>
  110. </dependency>
  111. <!-- spring orm -->
  112. <dependency>
  113. <groupId>org.springframework</groupId>
  114. <artifactId>spring-orm</artifactId>
  115. <version>${spring.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework</groupId>
  119. <artifactId>spring-jdbc</artifactId>
  120. <version>${spring.version}</version>
  121. </dependency>
  122. <!-- bean validate -->
  123. <dependency>
  124. <groupId>org.hibernate</groupId>
  125. <artifactId>hibernate-validator</artifactId>
  126. <version>${validator.version}</version>
  127. </dependency>
  128. <!-- SPRING end -->
  129. <!-- AOP begin -->
  130. <dependency>
  131. <groupId>org.aspectj</groupId>
  132. <artifactId>aspectjrt</artifactId>
  133. <version>1.7.4</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.aspectj</groupId>
  137. <artifactId>aspectjweaver</artifactId>
  138. <version>1.7.4</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>cglib</groupId>
  142. <artifactId>cglib</artifactId>
  143. <version>3.1</version>
  144. </dependency>
  145. <!-- AOP end -->
  146. <!-- PERSISTENCE begin -->
  147. <!-- MyBatis -->
  148. <dependency>
  149. <groupId>org.mybatis</groupId>
  150. <artifactId>mybatis</artifactId>
  151. <version>${mybatis.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.mybatis</groupId>
  155. <artifactId>mybatis-spring</artifactId>
  156. <version>${mybatis-spring.version}</version>
  157. </dependency>
  158. <!-- connection pool -->
  159. <dependency>
  160. <groupId>com.alibaba</groupId>
  161. <artifactId>druid</artifactId>
  162. <version>${druid.version}</version>
  163. </dependency>
  164. <!-- jdbc driver -->
  165. <dependency>
  166. <groupId>mysql</groupId>
  167. <artifactId>mysql-connector-java</artifactId>
  168. <version>${mysql.driver.version}</version>
  169. <scope>runtime</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.oracle</groupId>
  173. <artifactId>ojdbc14</artifactId>
  174. <version>${oracle.driver.version}</version>
  175. <scope>system</scope>
  176. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.4.0.jar</systemPath>
  177. </dependency>
  178. <dependency>
  179. <groupId>net.sourceforge.jtds</groupId>
  180. <artifactId>jtds</artifactId>
  181. <version>${mssql.driver.version}</version>
  182. <scope>runtime</scope>
  183. </dependency>
  184. <!-- PERSISTENCE end -->
  185. <!-- WEB begin -->
  186. <dependency>
  187. <groupId>org.springframework</groupId>
  188. <artifactId>spring-web</artifactId>
  189. <version>${spring.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.springframework</groupId>
  193. <artifactId>spring-webmvc</artifactId>
  194. <version>${spring.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.springframework</groupId>
  198. <artifactId>spring-oxm</artifactId>
  199. <version>${spring.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>opensymphony</groupId>
  203. <artifactId>sitemesh</artifactId>
  204. <version>${sitemesh.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>taglibs</groupId>
  208. <artifactId>standard</artifactId>
  209. <version>1.1.2</version>
  210. <type>jar</type>
  211. </dependency>
  212. <dependency>
  213. <groupId>javax.servlet</groupId>
  214. <artifactId>jstl</artifactId>
  215. <version>1.2</version>
  216. <type>jar</type>
  217. </dependency>
  218. <dependency>
  219. <groupId>javax.servlet</groupId>
  220. <artifactId>servlet-api</artifactId>
  221. <version>2.5</version>
  222. <scope>provided</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>javax.servlet.jsp</groupId>
  226. <artifactId>jsp-api</artifactId>
  227. <version>2.1</version>
  228. <scope>provided</scope>
  229. </dependency>
  230. <!-- <dependency>
  231. <groupId>javax.servlet</groupId>
  232. <artifactId>javax.servlet-api</artifactId>
  233. <version>3.0.1</version>
  234. <scope>provided</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>javax.servlet.jsp</groupId>
  238. <artifactId>jsp-api</artifactId>
  239. <version>2.2</version>
  240. <scope>provided</scope>
  241. </dependency> -->
  242. <!-- WEB end -->
  243. <!-- CACHE begin -->
  244. <dependency>
  245. <groupId>net.sf.ehcache</groupId>
  246. <artifactId>ehcache-core</artifactId>
  247. <version>${ehcache.version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>net.sf.ehcache</groupId>
  251. <artifactId>ehcache-web</artifactId>
  252. <version>${ehcache-web.version}</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>redis.clients</groupId>
  256. <artifactId>jedis</artifactId>
  257. <version>2.5.1</version>
  258. </dependency>
  259. <!-- CACHE end -->
  260. <!-- SECURITY begin -->
  261. <dependency>
  262. <groupId>org.apache.shiro</groupId>
  263. <artifactId>shiro-core</artifactId>
  264. <version>${shiro.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.shiro</groupId>
  268. <artifactId>shiro-spring</artifactId>
  269. <version>${shiro.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>org.apache.shiro</groupId>
  273. <artifactId>shiro-cas</artifactId>
  274. <version>${shiro.version}</version>
  275. <exclusions>
  276. <exclusion>
  277. <groupId>commons-logging</groupId>
  278. <artifactId>commons-logging</artifactId>
  279. </exclusion>
  280. </exclusions>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.apache.shiro</groupId>
  284. <artifactId>shiro-web</artifactId>
  285. <version>${shiro.version}</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.apache.shiro</groupId>
  289. <artifactId>shiro-ehcache</artifactId>
  290. <version>${shiro.version}</version>
  291. </dependency>
  292. <!-- SECURITY end -->
  293. <!-- Activiti -->
  294. <dependency>
  295. <groupId>org.activiti</groupId>
  296. <artifactId>activiti-engine</artifactId>
  297. <version>${activiti.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.activiti</groupId>
  301. <artifactId>activiti-spring</artifactId>
  302. <version>${activiti.version}</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>org.activiti</groupId>
  306. <artifactId>activiti-explorer</artifactId>
  307. <version>${activiti.version}</version>
  308. <exclusions>
  309. <exclusion>
  310. <artifactId>vaadin</artifactId>
  311. <groupId>com.vaadin</groupId>
  312. </exclusion>
  313. <exclusion>
  314. <artifactId>dcharts-widget</artifactId>
  315. <groupId>org.vaadin.addons</groupId>
  316. </exclusion>
  317. <exclusion>
  318. <artifactId>activiti-simple-workflow</artifactId>
  319. <groupId>org.activiti</groupId>
  320. </exclusion>
  321. </exclusions>
  322. </dependency>
  323. <dependency>
  324. <groupId>org.activiti</groupId>
  325. <artifactId>activiti-modeler</artifactId>
  326. <version>${activiti.version}</version>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.activiti</groupId>
  330. <artifactId>activiti-diagram-rest</artifactId>
  331. <version>${activiti.version}</version>
  332. </dependency>
  333. <!-- 支持activiti缓存 -->
  334. <!-- <dependency>
  335. <groupId>org.infinispan</groupId>
  336. <artifactId>infinispan-core</artifactId>
  337. <version>5.1.7.Final</version>
  338. </dependency> -->
  339. <!-- LOGGING begin -->
  340. <dependency>
  341. <groupId>org.slf4j</groupId>
  342. <artifactId>slf4j-api</artifactId>
  343. <version>${slf4j.version}</version>
  344. </dependency>
  345. <dependency>
  346. <groupId>org.slf4j</groupId>
  347. <artifactId>slf4j-log4j12</artifactId>
  348. <version>${slf4j.version}</version>
  349. </dependency>
  350. <!-- common-logging 实际调用slf4j -->
  351. <dependency>
  352. <groupId>org.slf4j</groupId>
  353. <artifactId>jcl-over-slf4j</artifactId>
  354. <version>${slf4j.version}</version>
  355. </dependency>
  356. <!-- java.util.logging 实际调用slf4j -->
  357. <dependency>
  358. <groupId>org.slf4j</groupId>
  359. <artifactId>jul-to-slf4j</artifactId>
  360. <version>${slf4j.version}</version>
  361. </dependency>
  362. <!-- LOGGING end -->
  363. <!-- GENERAL UTILS begin -->
  364. <dependency>
  365. <groupId>org.apache.commons</groupId>
  366. <artifactId>commons-lang3</artifactId>
  367. <version>${commons-lang3.version}</version>
  368. </dependency>
  369. <dependency>
  370. <groupId>commons-io</groupId>
  371. <artifactId>commons-io</artifactId>
  372. <version>${commons-io.version}</version>
  373. </dependency>
  374. <dependency>
  375. <groupId>commons-codec</groupId>
  376. <artifactId>commons-codec</artifactId>
  377. <version>${commons-codec.version}</version>
  378. </dependency>
  379. <dependency>
  380. <groupId>commons-fileupload</groupId>
  381. <artifactId>commons-fileupload</artifactId>
  382. <version>${commons-fileupload.version}</version>
  383. </dependency>
  384. <dependency>
  385. <groupId>commons-beanutils</groupId>
  386. <artifactId>commons-beanutils</artifactId>
  387. <version>${commons-beanutils.version}</version>
  388. <exclusions>
  389. <exclusion>
  390. <groupId>commons-logging</groupId>
  391. <artifactId>commons-logging</artifactId>
  392. </exclusion>
  393. </exclusions>
  394. </dependency>
  395. <!-- google java lib -->
  396. <dependency>
  397. <groupId>com.google.guava</groupId>
  398. <artifactId>guava</artifactId>
  399. <version>${guava.version}</version>
  400. </dependency>
  401. <!-- jackson json -->
  402. <dependency>
  403. <groupId>com.fasterxml.jackson.core</groupId>
  404. <artifactId>jackson-core</artifactId>
  405. <version>${jackson.version}</version>
  406. </dependency>
  407. <dependency>
  408. <groupId>com.fasterxml.jackson.core</groupId>
  409. <artifactId>jackson-databind</artifactId>
  410. <version>${jackson.version}</version>
  411. </dependency>
  412. <dependency>
  413. <groupId>com.fasterxml.jackson.core</groupId>
  414. <artifactId>jackson-annotations</artifactId>
  415. <version>${jackson.version}</version>
  416. </dependency>
  417. <dependency>
  418. <groupId>com.fasterxml.jackson.module</groupId>
  419. <artifactId>jackson-module-jaxb-annotations</artifactId>
  420. <version>${jackson.version}</version>
  421. </dependency>
  422. <!-- fastjson json
  423. <dependency>
  424. <groupId>com.alibaba</groupId>
  425. <artifactId>fastjson</artifactId>
  426. <version>${fastjson.version}</version>
  427. </dependency> -->
  428. <!-- xstream xml -->
  429. <dependency>
  430. <groupId>com.thoughtworks.xstream</groupId>
  431. <artifactId>xstream</artifactId>
  432. <version>${xstream.version}</version>
  433. </dependency>
  434. <dependency>
  435. <groupId>com.alibaba</groupId>
  436. <artifactId>fastjson</artifactId>
  437. <version>1.2.9</version>
  438. </dependency>
  439. <!-- pojo copy -->
  440. <dependency>
  441. <groupId>net.sf.dozer</groupId>
  442. <artifactId>dozer</artifactId>
  443. <version>${dozer.version}</version>
  444. </dependency>
  445. <!-- freemarker engine -->
  446. <dependency>
  447. <groupId>org.freemarker</groupId>
  448. <artifactId>freemarker</artifactId>
  449. <version>${freemarker.version}</version>
  450. </dependency>
  451. <!-- email -->
  452. <dependency>
  453. <groupId>javax.mail</groupId>
  454. <artifactId>mail</artifactId>
  455. <version>1.4.7</version>
  456. </dependency>
  457. <dependency>
  458. <groupId>javax.activation</groupId>
  459. <artifactId>activation</artifactId>
  460. <version>1.1.1</version>
  461. </dependency>
  462. <!-- poi office -->
  463. <dependency>
  464. <groupId>org.apache.poi</groupId>
  465. <artifactId>poi</artifactId>
  466. <version>${poi.version}</version>
  467. </dependency>
  468. <dependency>
  469. <groupId>org.apache.poi</groupId>
  470. <artifactId>poi-ooxml</artifactId>
  471. <version>${poi.version}</version>
  472. </dependency>
  473. <dependency>
  474. <groupId>org.apache.poi</groupId>
  475. <artifactId>poi-ooxml-schemas</artifactId>
  476. <version>${poi.version}</version>
  477. </dependency>
  478. <!-- image util -->
  479. <dependency>
  480. <groupId>com.drewnoakes</groupId>
  481. <artifactId>metadata-extractor</artifactId>
  482. <version>2.6.2</version>
  483. </dependency>
  484. <!-- 条形码、二维码生成 -->
  485. <dependency>
  486. <groupId>com.google.zxing</groupId>
  487. <artifactId>core</artifactId>
  488. <version>2.2</version>
  489. </dependency>
  490. <dependency>
  491. <groupId>com.google.zxing</groupId>
  492. <artifactId>javase</artifactId>
  493. <version>2.2</version>
  494. </dependency>
  495. <dependency>
  496. <groupId>net.sf.json-lib</groupId>
  497. <artifactId>json-lib</artifactId>
  498. <version>2.4</version>
  499. <classifier>jdk15</classifier>
  500. </dependency>
  501. <!-- 中文分词 -->
  502. <dependency>
  503. <groupId>org.wltea</groupId>
  504. <artifactId>analyzer</artifactId>
  505. <version>2012_u6</version>
  506. <scope>system</scope>
  507. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/analyzer-2012_u6.jar</systemPath>
  508. </dependency>
  509. <!-- GENERAL UTILS end -->
  510. <dependency>
  511. <groupId>org.nutz</groupId>
  512. <artifactId>nutz-plugins-qrcode</artifactId>
  513. <version>1.r.60.r3</version>
  514. </dependency>
  515. <!-- CKFinder begin -->
  516. <dependency>
  517. <groupId>net.coobird</groupId>
  518. <artifactId>thumbnailator</artifactId>
  519. <version>0.4.2</version>
  520. <scope>system</scope>
  521. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/thumbnailator-0.4.2.jar</systemPath>
  522. </dependency>
  523. <dependency>
  524. <groupId>com.ckfinder</groupId>
  525. <artifactId>apache-ant-zip</artifactId>
  526. <version>2.3</version>
  527. <scope>system</scope>
  528. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/apache-ant-zip-2.3.jar</systemPath>
  529. </dependency>
  530. <dependency>
  531. <groupId>com.ckfinder</groupId>
  532. <artifactId>ckfinder</artifactId>
  533. <version>2.3</version>
  534. <scope>system</scope>
  535. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinder-2.3.jar</systemPath>
  536. </dependency>
  537. <dependency>
  538. <groupId>com.ckfinder</groupId>
  539. <artifactId>ckfinderplugin-fileeditor</artifactId>
  540. <version>2.3</version>
  541. <scope>system</scope>
  542. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinderplugin-fileeditor-2.3.jar</systemPath>
  543. </dependency>
  544. <dependency>
  545. <groupId>com.ckfinder</groupId>
  546. <artifactId>ckfinderplugin-imageresize</artifactId>
  547. <version>2.3</version>
  548. <scope>system</scope>
  549. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ckfinderplugin-imageresize-2.3.jar</systemPath>
  550. </dependency>
  551. <!-- CKFinder end -->
  552. <!-- TEST begin -->
  553. <dependency>
  554. <groupId>junit</groupId>
  555. <artifactId>junit</artifactId>
  556. <version>4.11</version>
  557. </dependency>
  558. <dependency>
  559. <groupId>org.springframework</groupId>
  560. <artifactId>spring-test</artifactId>
  561. <version>${spring.version}</version>
  562. </dependency>
  563. <!-- TEST end -->
  564. <!-- User Agent -->
  565. <dependency>
  566. <groupId>bitwalker</groupId>
  567. <artifactId>UserAgentUtils</artifactId>
  568. <version>1.13</version>
  569. <scope>system</scope>
  570. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/UserAgentUtils-1.13.jar</systemPath>
  571. </dependency>
  572. <!-- 腾讯云api -->
  573. <dependency>
  574. <groupId>com.tencentcloudapi</groupId>
  575. <artifactId>tencentcloud-sdk-java</artifactId>
  576. <!-- go to https://search.maven.org/search?q=tencentcloud-sdk-java and get the latest version. -->
  577. <!-- 请到https://search.maven.org/search?q=tencentcloud-sdk-java查询所有版本,最新版本如下 -->
  578. <version>3.1.322</version>
  579. </dependency>
  580. <!-- 自定义jar依赖包
  581. <dependency>
  582. <groupId>com.thinkgem.jeesite</groupId>
  583. <artifactId>test-core</artifactId>
  584. <version>1.0</version>
  585. <scope>system</scope>
  586. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/test-core-1.0.jar</systemPath>
  587. </dependency> -->
  588. <!-- 使用 Jetty JSP引擎
  589. <dependency>
  590. <groupId>org.eclipse.jetty</groupId>
  591. <artifactId>jetty-jsp</artifactId>
  592. <version>${jetty.version}</version>
  593. <exclusions>
  594. <exclusion>
  595. <groupId>org.eclipse.jetty.orbit</groupId>
  596. <artifactId>javax.servlet</artifactId>
  597. </exclusion>
  598. <exclusion>
  599. <groupId>org.eclipse.jetty.orbit</groupId>
  600. <artifactId>org.apache.taglibs.standard.glassfish</artifactId>
  601. </exclusion>
  602. </exclusions>
  603. </dependency> -->
  604. </dependencies>
  605. <build>
  606. <outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/classes/</outputDirectory>
  607. <plugins>
  608. <!-- Compiler 插件, 设定JDK版本 -->
  609. <plugin>
  610. <groupId>org.apache.maven.plugins</groupId>
  611. <artifactId>maven-compiler-plugin</artifactId>
  612. <version>3.5.1</version>
  613. <configuration>
  614. <source>${jdk.version}</source>
  615. <target>${jdk.version}</target>
  616. <showWarnings>true</showWarnings>
  617. </configuration>
  618. </plugin>
  619. <!-- JSP 预编译插件 jspweb.xml
  620. <plugin>
  621. <groupId>org.jasig.mojo.jspc</groupId>
  622. <artifactId>jspc-maven-plugin</artifactId>
  623. <version>2.0.0</version>
  624. <configuration>
  625. <injectString>&lt;!- - [INSERT FRAGMENT HERE] - -&gt;</injectString>
  626. </configuration>
  627. <executions>
  628. <execution>
  629. <goals>
  630. <goal>compile</goal>
  631. </goals>
  632. </execution>
  633. </executions>
  634. <dependencies>
  635. <dependency>
  636. <groupId>org.jasig.mojo.jspc</groupId>
  637. <artifactId>jspc-compiler-tomcat6</artifactId>
  638. <version>2.0.0</version>
  639. </dependency>
  640. </dependencies>
  641. </plugin>-->
  642. <!-- Jetty JSP 预编译插件 web.xml
  643. <plugin>
  644. <groupId>org.mortbay.jetty</groupId>
  645. <artifactId>jetty-jspc-maven-plugin</artifactId>
  646. <version>${jetty.version}</version>
  647. <configuration>
  648. <insertionMarker>&lt;!- - [INSERT FRAGMENT HERE] - -&gt;</insertionMarker>
  649. </configuration>
  650. <executions>
  651. <execution>
  652. <goals>
  653. <goal>jspc</goal>
  654. </goals>
  655. </execution>
  656. </executions>
  657. </plugin>-->
  658. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  659. <plugin>
  660. <groupId>org.apache.maven.plugins</groupId>
  661. <artifactId>maven-jar-plugin</artifactId>
  662. <version>2.4</version>
  663. <configuration>
  664. <encoding>${project.build.sourceEncoding}</encoding>
  665. </configuration>
  666. <!-- <executions>
  667. <execution>
  668. <phase>prepare-package</phase>
  669. <goals>
  670. <goal>jar</goal>
  671. </goals>
  672. <configuration>
  673. <classesDirectory>${project.outputDirectory}</classesDirectory>
  674. <finalName>jeesite</finalName>
  675. <outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory>
  676. <includes>
  677. <include>com/thinkgem/jeesite/**</include>
  678. </includes>
  679. </configuration>
  680. </execution>
  681. </executions> -->
  682. </plugin>
  683. <!-- 混淆代码
  684. <plugin>
  685. <groupId>com.github.wvengen</groupId>
  686. <artifactId>proguard-maven-plugin</artifactId>
  687. <version>2.0.11</version>
  688. <executions>
  689. <execution>
  690. <phase>prepare-package</phase>
  691. <goals>
  692. <goal>proguard</goal>
  693. </goals>
  694. </execution>
  695. </executions>
  696. <configuration>
  697. <obfuscate>true</obfuscate>
  698. <options>
  699. <option>-injars ${project.build.directory}/${project.artifactId}/WEB-INF/lib/jeesite.jar</option>
  700. </options>
  701. <outjar>${project.artifactId}/WEB-INF/lib/jeesite_out.jar</outjar>
  702. <outputDirectory>${project.build.directory}</outputDirectory>
  703. <proguardInclude>${basedir}/proguard.cfg</proguardInclude>
  704. <source>${jdk.version}</source>
  705. <target>${jdk.version}</target>
  706. <encoding>${project.build.sourceEncoding}</encoding>
  707. <libs>
  708. <lib>${java.home}/lib/rt.jar</lib>
  709. <lib>${java.home}/lib/jsse.jar</lib>
  710. <lib>${java.home}/lib/jce.jar</lib>
  711. </libs>
  712. <addMavenDescriptor>false</addMavenDescriptor>
  713. </configuration>
  714. <dependencies>
  715. <dependency>
  716. <groupId>net.sf.proguard</groupId>
  717. <artifactId>proguard-base</artifactId>
  718. <version>4.9</version>
  719. <scope>runtime</scope>
  720. </dependency>
  721. </dependencies>
  722. </plugin> -->
  723. <!-- war 打包插件, 设定war包名称不带版本号 -->
  724. <plugin>
  725. <groupId>org.apache.maven.plugins</groupId>
  726. <artifactId>maven-war-plugin</artifactId>
  727. <version>2.4</version>
  728. <configuration>
  729. <packagingExcludes>
  730. <!-- WEB-INF/classes/com/thinkgem/jeesite/** -->
  731. WEB-INF/classes/org/apache/ibatis/**,
  732. WEB-INF/classes/org/mybatis/spring/**
  733. </packagingExcludes>
  734. <warSourceExcludes>
  735. static/bootstrap/2.3.1/docs/**,
  736. static/ckeditor/_samples/**,
  737. static/ckeditor/_source/**,
  738. static/ckfinder/_samples/**,
  739. static/ckfinder/help/**,
  740. static/compressor*/**,
  741. static/jquery-jbox/2.3/docs/**,
  742. static/jquery-jbox/2.3/Skins2/**,
  743. static/jquery-validation/1.11.0/demo/**,
  744. static/jquery-ztree/3.5.12/demo/**,
  745. static/My97DatePicker/docs/**,
  746. static/supcan/doc/**,
  747. static/SuperSlide/demo/**,
  748. static/treeTable/demo/**<!-- , -->
  749. <!-- userfiles/** --><!-- ,/**/*.jsp -->,
  750. test/**
  751. </warSourceExcludes>
  752. <webappDirectory>${project.build.directory}/${project.artifactId}</webappDirectory><!--
  753. <webXml>${project.basedir}/target/jspweb.xml</webXml> -->
  754. <warName>${project.artifactId}</warName>
  755. </configuration>
  756. </plugin>
  757. <!-- Eclipse 插件 -->
  758. <plugin>
  759. <groupId>org.apache.maven.plugins</groupId>
  760. <artifactId>maven-eclipse-plugin</artifactId>
  761. <version>2.9</version>
  762. <configuration>
  763. <downloadSources>${downloadSources}</downloadSources>
  764. <downloadJavadocs>false</downloadJavadocs>
  765. <wtpversion>2.0</wtpversion>
  766. <jeeversion>5.0</jeeversion>
  767. <!-- <jeeversion>6.0</jeeversion> -->
  768. <additionalConfig>
  769. <file>
  770. <name>.settings/org.eclipse.core.resources.prefs</name>
  771. <content>
  772. <![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
  773. </content>
  774. </file>
  775. </additionalConfig>
  776. <additionalProjectnatures>
  777. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
  778. </additionalProjectnatures>
  779. </configuration>
  780. </plugin>
  781. <!-- tomcat6插件 -->
  782. <plugin>
  783. <groupId>org.apache.tomcat.maven</groupId>
  784. <artifactId>tomcat6-maven-plugin</artifactId>
  785. <version>${tomcat.version}</version>
  786. <configuration>
  787. <port>${webserver.port}</port>
  788. <path>/${project.artifactId}</path>
  789. <uriEncoding>${project.build.sourceEncoding}</uriEncoding>
  790. </configuration>
  791. </plugin>
  792. <!-- tomcat7插件 -->
  793. <plugin>
  794. <groupId>org.apache.tomcat.maven</groupId>
  795. <artifactId>tomcat7-maven-plugin</artifactId>
  796. <version>${tomcat.version}</version>
  797. <configuration>
  798. <port>${webserver.port}</port>
  799. <path>/${project.artifactId}</path>
  800. <uriEncoding>${project.build.sourceEncoding}</uriEncoding>
  801. </configuration>
  802. </plugin>
  803. <!-- jetty插件 -->
  804. <plugin>
  805. <groupId>org.mortbay.jetty</groupId>
  806. <artifactId>jetty-maven-plugin</artifactId>
  807. <version>${jetty.version}</version>
  808. <configuration>
  809. <connectors>
  810. <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  811. <port>${webserver.port}</port>
  812. </connector>
  813. </connectors>
  814. <webAppConfig>
  815. <contextPath>/${project.artifactId}</contextPath>
  816. </webAppConfig>
  817. <systemProperties>
  818. <systemProperty>
  819. <name>org.mortbay.util.URI.charset</name>
  820. <value>${project.build.sourceEncoding}</value>
  821. </systemProperty>
  822. </systemProperties>
  823. </configuration>
  824. </plugin>
  825. <!-- resource插件 -->
  826. <plugin>
  827. <groupId>org.apache.maven.plugins</groupId>
  828. <artifactId>maven-resources-plugin</artifactId>
  829. <version>2.7</version>
  830. </plugin>
  831. <!-- install插件 -->
  832. <plugin>
  833. <groupId>org.apache.maven.plugins</groupId>
  834. <artifactId>maven-install-plugin</artifactId>
  835. <version>2.5.2</version>
  836. </plugin>
  837. <!-- clean插件 -->
  838. <plugin>
  839. <groupId>org.apache.maven.plugins</groupId>
  840. <artifactId>maven-clean-plugin</artifactId>
  841. <version>2.6.1</version>
  842. </plugin>
  843. <!-- ant插件 -->
  844. <plugin>
  845. <groupId>org.apache.maven.plugins</groupId>
  846. <artifactId>maven-antrun-plugin</artifactId>
  847. <version>1.8</version>
  848. </plugin>
  849. <!-- dependency插件 -->
  850. <plugin>
  851. <groupId>org.apache.maven.plugins</groupId>
  852. <artifactId>maven-dependency-plugin</artifactId>
  853. <version>2.10</version>
  854. </plugin>
  855. </plugins>
  856. </build>
  857. <profiles>
  858. <!-- 初始化数据库 -->
  859. <profile>
  860. <id>init-db</id>
  861. <dependencies>
  862. <dependency>
  863. <groupId>org.dbunit</groupId>
  864. <artifactId>dbunit</artifactId>
  865. <version>2.4.8</version>
  866. </dependency>
  867. <dependency>
  868. <groupId>org.apache.poi</groupId>
  869. <artifactId>poi</artifactId>
  870. <version>3.2-FINAL</version>
  871. </dependency>
  872. </dependencies>
  873. <build>
  874. <plugins>
  875. <plugin>
  876. <groupId>org.apache.maven.plugins</groupId>
  877. <artifactId>maven-antrun-plugin</artifactId>
  878. <version>1.7</version>
  879. <configuration>
  880. <target>
  881. <!-- mysql -->
  882. <property name="dbunit.datatype" value="org.dbunit.ext.mysql.MySqlDataTypeFactory" />
  883. <!-- mssql
  884. <property name="dbunit.datatype" value="org.dbunit.ext.mssql.MsSqlDataTypeFactory" /> -->
  885. <!-- oracle
  886. <property name="dbunit.datatype" value="org.dbunit.ext.oracle.Oracle10DataTypeFactory" /> -->
  887. <property file="src/main/resources/jeesite.properties" />
  888. <sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
  889. onerror="continue" encoding="${project.build.sourceEncoding}">
  890. <classpath refid="maven.test.classpath" />
  891. <transaction src="db/sys/jeesite_${jdbc.type}.sql"/>
  892. <transaction src="db/cms/jeesite_${jdbc.type}.sql"/>
  893. <transaction src="db/oa/jeesite_${jdbc.type}.sql"/>
  894. <transaction src="db/gen/jeesite_${jdbc.type}.sql"/>
  895. <transaction src="db/gen/example_${jdbc.type}.sql"/>
  896. <transaction src="db/test/jeesite_${jdbc.type}.sql"/>
  897. <transaction src="db/act/drop/activiti.${jdbc.type}.drop.engine.sql"/>
  898. <transaction src="db/act/drop/activiti.${jdbc.type}.drop.history.sql"/>
  899. <transaction src="db/act/drop/activiti.${jdbc.type}.drop.identity.sql"/>
  900. <transaction src="db/act/create/activiti.${jdbc.type}.create.engine.sql"/>
  901. <transaction src="db/act/create/activiti.${jdbc.type}.create.history.sql"/>
  902. <transaction src="db/act/create/activiti.${jdbc.type}.create.identity.sql"/>
  903. </sql>
  904. <taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath" />
  905. <!-- mysql、mssql -->
  906. <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"
  907. password="${jdbc.password}">
  908. <!-- oracle
  909. <dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}"
  910. password="${jdbc.password}" schema="${jdbc.username}" > -->
  911. <dbconfig>
  912. <property name="datatypeFactory" value="${dbunit.datatype}" />
  913. </dbconfig>
  914. <classpath refid="maven.test.classpath" />
  915. <operation type="INSERT" src="db/sys/jeesite_data.xls" format="xls" transaction="true"/>
  916. <operation type="INSERT" src="db/cms/jeesite_data.xls" format="xls" transaction="true"/>
  917. </dbunit>
  918. </target>
  919. </configuration>
  920. </plugin>
  921. </plugins>
  922. </build>
  923. </profile>
  924. </profiles>
  925. <!-- 开发者信息 -->
  926. <developers>
  927. <developer>
  928. <id>thinkgem</id>
  929. <name>WangZhen</name>
  930. <email>thinkgem at 163.com</email>
  931. <roles><role>Project lead</role></roles>
  932. <timezone>+8</timezone>
  933. </developer>
  934. </developers>
  935. </project>