pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.hermit</groupId>
  7. <artifactId>smartwx</artifactId>
  8. <packaging>war</packaging>
  9. <version>1.0-SNAPSHOT</version>
  10. <!-- 项目属性 -->
  11. <properties>
  12. <lib.path>${basedir}/src/main/webapp/WEB-INF/lib</lib.path>
  13. <!-- main version setting -->
  14. <spring.version>4.3.5.RELEASE</spring.version>
  15. <mybatis.version>3.2.8</mybatis.version>
  16. <mybatis-spring.version>1.2.2</mybatis-spring.version>
  17. <druid.version>1.0.11</druid.version>
  18. <ehcache.version>2.6.11</ehcache.version>
  19. <ehcache-web.version>2.0.4</ehcache-web.version>
  20. <!-- tools version setting -->
  21. <slf4j.version>1.7.22</slf4j.version>
  22. <commons-io.version>2.4</commons-io.version>
  23. <commons-codec.version>1.9</commons-codec.version>
  24. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  25. <commons-beanutils.version>1.9.1</commons-beanutils.version>
  26. <xstream.version>1.4.9</xstream.version>
  27. <jackson.version>2.8.6</jackson.version>
  28. <fastjson.version>1.2.4</fastjson.version>
  29. <metadata-extractor.version>2.6.2</metadata-extractor.version>
  30. <jsoup.version>1.11.2</jsoup.version>
  31. <lombok.version>1.16.16</lombok.version>
  32. <guava.version>20.0</guava.version>
  33. <commons-lang3.version>3.5</commons-lang3.version>
  34. <common-lang.version>2.6</common-lang.version>
  35. <zxing.version>2.2</zxing.version>
  36. <junit.version>4.11</junit.version>
  37. <httpclient.version>4.5.2</httpclient.version>
  38. <httpcore.version>4.4.6</httpcore.version>
  39. <swagger-ui.version>2.5.0</swagger-ui.version>
  40. <configuration.version>1.7</configuration.version>
  41. <aspectj.version>1.7.4</aspectj.version>
  42. <cglib.version>3.1</cglib.version>
  43. <taglibs.version>1.1.2</taglibs.version>
  44. <jstl.version>1.2</jstl.version>
  45. <servlet-api.version>3.0.1</servlet-api.version>
  46. <commons-dbcp.version>1.4</commons-dbcp.version>
  47. <!-- jdbc driver setting -->
  48. <mysql.driver.version>5.1.30</mysql.driver.version>
  49. <!-- environment setting -->
  50. <jdk.version>1.8</jdk.version>
  51. <tomcat.version>2.2</tomcat.version>
  52. <webserver.port>8080</webserver.port>
  53. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  54. <downloadSources>true</downloadSources>
  55. </properties>
  56. <!-- 设定仓库 -->
  57. <repositories>
  58. <repository>
  59. <id>central-repos</id>
  60. <name>Central Repository</name>
  61. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  62. <releases>
  63. <enabled>true</enabled>
  64. </releases>
  65. <snapshots>
  66. <enabled>false</enabled>
  67. </snapshots>
  68. </repository>
  69. <repository>
  70. <id>central-repos1</id>
  71. <name>Central Repository 1</name>
  72. <url>http://repo1.maven.org/maven2/</url>
  73. </repository>
  74. </repositories>
  75. <build>
  76. <finalName>ROOT</finalName>
  77. <resources>
  78. <resource>
  79. <directory>src/main/java</directory>
  80. <includes>
  81. <include>**/*.xml</include>
  82. </includes>
  83. </resource>
  84. <resource>
  85. <directory>src/main/resources</directory>
  86. </resource>
  87. </resources>
  88. <plugins>
  89. <!-- tomcat7插件 -->
  90. <plugin>
  91. <groupId>org.apache.tomcat.maven</groupId>
  92. <artifactId>tomcat7-maven-plugin</artifactId>
  93. <version>${tomcat.version}</version>
  94. <configuration>
  95. <port>${webserver.port}</port>
  96. <path>/</path>
  97. <uriEncoding>${project.build.sourceEncoding}</uriEncoding>
  98. </configuration>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-compiler-plugin</artifactId>
  103. <version>3.3</version>
  104. <configuration>
  105. <source>${jdk.version}</source>
  106. <target>${jdk.version}</target>
  107. </configuration>
  108. </plugin>
  109. </plugins>
  110. </build>
  111. <!-- 依赖项定义 -->
  112. <dependencies>
  113. <!-- SPRING begin -->
  114. <dependency>
  115. <groupId>org.springframework</groupId>
  116. <artifactId>spring-core</artifactId>
  117. <version>${spring.version}</version>
  118. <exclusions>
  119. <exclusion>
  120. <groupId>commons-logging</groupId>
  121. <artifactId>commons-logging</artifactId>
  122. </exclusion>
  123. </exclusions>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework</groupId>
  127. <artifactId>spring-beans</artifactId>
  128. <version>${spring.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework</groupId>
  132. <artifactId>spring-context</artifactId>
  133. <version>${spring.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.springframework</groupId>
  137. <artifactId>spring-context-support</artifactId>
  138. <version>${spring.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.springframework</groupId>
  142. <artifactId>spring-aop</artifactId>
  143. <version>${spring.version}</version>
  144. <exclusions>
  145. <exclusion>
  146. <groupId>commons-logging</groupId>
  147. <artifactId>commons-logging</artifactId>
  148. </exclusion>
  149. </exclusions>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework</groupId>
  153. <artifactId>spring-tx</artifactId>
  154. <version>${spring.version}</version>
  155. </dependency>
  156. <!-- spring orm -->
  157. <dependency>
  158. <groupId>org.springframework</groupId>
  159. <artifactId>spring-orm</artifactId>
  160. <version>${spring.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.springframework</groupId>
  164. <artifactId>spring-jdbc</artifactId>
  165. <version>${spring.version}</version>
  166. </dependency>
  167. <!-- spring websocket-->
  168. <dependency>
  169. <groupId>org.springframework</groupId>
  170. <artifactId>spring-websocket</artifactId>
  171. <version>${spring.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.springframework</groupId>
  175. <artifactId>spring-messaging</artifactId>
  176. <version>${spring.version}</version>
  177. </dependency>
  178. <!-- SPRING end -->
  179. <!-- AOP begin -->
  180. <dependency>
  181. <groupId>org.aspectj</groupId>
  182. <artifactId>aspectjrt</artifactId>
  183. <version>${aspectj.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.aspectj</groupId>
  187. <artifactId>aspectjweaver</artifactId>
  188. <version>${aspectj.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>cglib</groupId>
  192. <artifactId>cglib</artifactId>
  193. <version>${cglib.version}</version>
  194. </dependency>
  195. <!-- AOP end -->
  196. <!-- PERSISTENCE begin -->
  197. <!-- MyBatis -->
  198. <dependency>
  199. <groupId>org.mybatis</groupId>
  200. <artifactId>mybatis</artifactId>
  201. <version>${mybatis.version}</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.mybatis</groupId>
  205. <artifactId>mybatis-spring</artifactId>
  206. <version>${mybatis-spring.version}</version>
  207. </dependency>
  208. <!-- connection pool -->
  209. <dependency>
  210. <groupId>com.alibaba</groupId>
  211. <artifactId>druid</artifactId>
  212. <version>${druid.version}</version>
  213. </dependency>
  214. <!-- jdbc driver -->
  215. <dependency>
  216. <groupId>mysql</groupId>
  217. <artifactId>mysql-connector-java</artifactId>
  218. <version>${mysql.driver.version}</version>
  219. </dependency>
  220. <!-- PERSISTENCE end -->
  221. <!-- WEB begin -->
  222. <dependency>
  223. <groupId>org.springframework</groupId>
  224. <artifactId>spring-web</artifactId>
  225. <version>${spring.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.springframework</groupId>
  229. <artifactId>spring-webmvc</artifactId>
  230. <version>${spring.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.springframework</groupId>
  234. <artifactId>spring-oxm</artifactId>
  235. <version>${spring.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>taglibs</groupId>
  239. <artifactId>standard</artifactId>
  240. <version>${taglibs.version}</version>
  241. <type>jar</type>
  242. </dependency>
  243. <dependency>
  244. <groupId>javax.servlet</groupId>
  245. <artifactId>jstl</artifactId>
  246. <version>${jstl.version}</version>
  247. <type>jar</type>
  248. </dependency>
  249. <dependency>
  250. <groupId>javax.servlet</groupId>
  251. <artifactId>javax.servlet-api</artifactId>
  252. <version>${servlet-api.version}</version>
  253. <scope>provided</scope>
  254. </dependency>
  255. <dependency>
  256. <groupId>javax.persistence</groupId>
  257. <artifactId>persistence-api</artifactId>
  258. <version>1.0.2</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>net.sf.ehcache</groupId>
  262. <artifactId>ehcache-core</artifactId>
  263. <version>${ehcache.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.commons</groupId>
  267. <artifactId>commons-pool2</artifactId>
  268. <version>2.4.2</version>
  269. </dependency>
  270. <!-- LOGGING begin -->
  271. <dependency>
  272. <groupId>org.slf4j</groupId>
  273. <artifactId>slf4j-api</artifactId>
  274. <version>${slf4j.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.slf4j</groupId>
  278. <artifactId>slf4j-log4j12</artifactId>
  279. <version>${slf4j.version}</version>
  280. </dependency>
  281. <!-- common-logging 实际调用slf4j -->
  282. <dependency>
  283. <groupId>org.slf4j</groupId>
  284. <artifactId>jcl-over-slf4j</artifactId>
  285. <version>${slf4j.version}</version>
  286. </dependency>
  287. <!-- java.util.logging 实际调用slf4j -->
  288. <dependency>
  289. <groupId>org.slf4j</groupId>
  290. <artifactId>jul-to-slf4j</artifactId>
  291. <version>${slf4j.version}</version>
  292. </dependency>
  293. <!-- LOGGING end -->
  294. <!-- GENERAL UTILS begin -->
  295. <dependency>
  296. <groupId>commons-io</groupId>
  297. <artifactId>commons-io</artifactId>
  298. <version>${commons-io.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>commons-codec</groupId>
  302. <artifactId>commons-codec</artifactId>
  303. <version>${commons-codec.version}</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>commons-fileupload</groupId>
  307. <artifactId>commons-fileupload</artifactId>
  308. <version>${commons-fileupload.version}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>commons-beanutils</groupId>
  312. <artifactId>commons-beanutils</artifactId>
  313. <version>${commons-beanutils.version}</version>
  314. <exclusions>
  315. <exclusion>
  316. <groupId>commons-logging</groupId>
  317. <artifactId>commons-logging</artifactId>
  318. </exclusion>
  319. </exclusions>
  320. </dependency>
  321. <dependency>
  322. <groupId>commons-dbcp</groupId>
  323. <artifactId>commons-dbcp</artifactId>
  324. <version>${commons-dbcp.version}</version>
  325. </dependency>
  326. <!-- jackson json -->
  327. <dependency>
  328. <groupId>com.fasterxml.jackson.core</groupId>
  329. <artifactId>jackson-core</artifactId>
  330. <version>${jackson.version}</version>
  331. </dependency>
  332. <dependency>
  333. <groupId>com.fasterxml.jackson.core</groupId>
  334. <artifactId>jackson-databind</artifactId>
  335. <version>${jackson.version}</version>
  336. </dependency>
  337. <dependency>
  338. <groupId>com.fasterxml.jackson.core</groupId>
  339. <artifactId>jackson-annotations</artifactId>
  340. <version>${jackson.version}</version>
  341. </dependency>
  342. <dependency>
  343. <groupId>com.fasterxml.jackson.module</groupId>
  344. <artifactId>jackson-module-jaxb-annotations</artifactId>
  345. <version>${jackson.version}</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>com.alibaba</groupId>
  349. <artifactId>fastjson</artifactId>
  350. <version>${fastjson.version}</version>
  351. </dependency>
  352. <!-- xstream xml -->
  353. <dependency>
  354. <groupId>com.thoughtworks.xstream</groupId>
  355. <artifactId>xstream</artifactId>
  356. <version>${xstream.version}</version>
  357. </dependency>
  358. <!-- image util -->
  359. <dependency>
  360. <groupId>com.drewnoakes</groupId>
  361. <artifactId>metadata-extractor</artifactId>
  362. <version>${metadata-extractor.version}</version>
  363. </dependency>
  364. <!-- 条形码、二维码生成 -->
  365. <dependency>
  366. <groupId>com.google.zxing</groupId>
  367. <artifactId>core</artifactId>
  368. <version>${zxing.version}</version>
  369. </dependency>
  370. <dependency>
  371. <groupId>com.google.zxing</groupId>
  372. <artifactId>javase</artifactId>
  373. <version>${zxing.version}</version>
  374. </dependency>
  375. <!-- TEST begin -->
  376. <dependency>
  377. <groupId>junit</groupId>
  378. <artifactId>junit</artifactId>
  379. <version>${junit.version}</version>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.springframework</groupId>
  383. <artifactId>spring-test</artifactId>
  384. <version>${spring.version}</version>
  385. </dependency>
  386. <!-- TEST end -->
  387. <!--httpcore -->
  388. <dependency>
  389. <groupId>org.apache.httpcomponents</groupId>
  390. <artifactId>httpcore</artifactId>
  391. <version>${httpcore.version}</version>
  392. </dependency>
  393. <dependency>
  394. <groupId>org.apache.httpcomponents</groupId>
  395. <artifactId>httpclient</artifactId>
  396. <version>${httpclient.version}</version>
  397. </dependency>
  398. <dependency>
  399. <groupId>org.apache.httpcomponents</groupId>
  400. <artifactId>httpmime</artifactId>
  401. <version>${httpclient.version}</version>
  402. </dependency>
  403. <!-- swagger-springmvc -->
  404. <dependency>
  405. <groupId>io.springfox</groupId>
  406. <artifactId>springfox-swagger2</artifactId>
  407. <version>${swagger-ui.version}</version>
  408. </dependency>
  409. <dependency>
  410. <groupId>io.springfox</groupId>
  411. <artifactId>springfox-swagger-ui</artifactId>
  412. <version>${swagger-ui.version}</version>
  413. </dependency>
  414. <!-- swagger-springmvc dependencies -->
  415. <!-- UTILS begin -->
  416. <dependency>
  417. <groupId>com.google.guava</groupId>
  418. <artifactId>guava</artifactId>
  419. <version>${guava.version}</version>
  420. </dependency>
  421. <dependency>
  422. <groupId>org.apache.commons</groupId>
  423. <artifactId>commons-lang3</artifactId>
  424. <version>${commons-lang3.version}</version>
  425. </dependency>
  426. <dependency>
  427. <groupId>commons-lang</groupId>
  428. <artifactId>commons-lang</artifactId>
  429. <version>${common-lang.version}</version>
  430. </dependency>
  431. <dependency>
  432. <groupId>commons-configuration</groupId>
  433. <artifactId>commons-configuration</artifactId>
  434. <version>${configuration.version}</version>
  435. </dependency>
  436. <!-- UTILS end -->
  437. <dependency>
  438. <groupId>org.jsoup</groupId>
  439. <artifactId>jsoup</artifactId>
  440. <version>${jsoup.version}</version>
  441. </dependency>
  442. <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper -->
  443. <dependency>
  444. <groupId>com.github.pagehelper</groupId>
  445. <artifactId>pagehelper</artifactId>
  446. <version>3.2.3</version>
  447. </dependency>
  448. <!-- https://mvnrepository.com/artifact/cpdetector/cpdetector -->
  449. <dependency>
  450. <groupId>cpdetector</groupId>
  451. <artifactId>cpdetector</artifactId>
  452. <version>1.0.7</version>
  453. <systemPath>${lib.path}/cpdetector-1.0.7.jar</systemPath>
  454. <scope>system</scope>
  455. </dependency>
  456. <dependency>
  457. <groupId>org.mozilla.intl</groupId>
  458. <artifactId>chardet</artifactId>
  459. <version>1.0</version>
  460. <systemPath>${lib.path}/chardet-1.0.jar</systemPath>
  461. <scope>system</scope>
  462. </dependency>
  463. <!-- https://mvnrepository.com/artifact/org.jdom/jdom -->
  464. <dependency>
  465. <groupId>org.jdom</groupId>
  466. <artifactId>jdom</artifactId>
  467. <version>1.1.3</version>
  468. </dependency>
  469. <!-- https://mvnrepository.com/artifact/dom4j/dom4j -->
  470. <dependency>
  471. <groupId>dom4j</groupId>
  472. <artifactId>dom4j</artifactId>
  473. <version>1.6.1</version>
  474. </dependency>
  475. <!-- 在编译阶段动态生成代码 -->
  476. <dependency>
  477. <groupId>org.projectlombok</groupId>
  478. <artifactId>lombok</artifactId>
  479. <version>${lombok.version}</version>
  480. </dependency>
  481. <!-- 七牛 -->
  482. <dependency>
  483. <groupId>com.qiniu</groupId>
  484. <artifactId>qiniu-java-sdk</artifactId>
  485. <version>7.2.6</version>
  486. <scope>compile</scope>
  487. </dependency>
  488. <!-- https://mvnrepository.com/artifact/net.oschina.j2cache/j2cache -->
  489. <!--<dependency>-->
  490. <!--<groupId>net.oschina.j2cache</groupId>-->
  491. <!--<artifactId>j2cache-core</artifactId>-->
  492. <!-- <version>2.3.8-release</version>-->
  493. <!--<exclusions>-->
  494. <!--<exclusion>-->
  495. <!--<artifactId>log4j</artifactId>-->
  496. <!--<groupId>log4j</groupId>-->
  497. <!--</exclusion>-->
  498. <!--</exclusions>-->
  499. <!--</dependency>-->
  500. <!--<dependency>-->
  501. <!--<groupId>org.jgroups</groupId>-->
  502. <!--<artifactId>jgroups</artifactId>-->
  503. <!--<version>3.6.13.Final</version>-->
  504. <!--</dependency>-->
  505. </dependencies>
  506. </project>