pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.goafanti</groupId>
  6. <artifactId>jitao-server</artifactId>
  7. <name>jitao-server</name>
  8. <packaging>war</packaging>
  9. <version>1.0.0-BUILD-SNAPSHOT</version>
  10. <properties>
  11. <java-version>1.8</java-version>
  12. <org.springframework-version>4.2.5.RELEASE</org.springframework-version>
  13. <org.slf4j-version>1.7.21</org.slf4j-version>
  14. <shiro-version>1.3.2</shiro-version>
  15. <mybatis-version>3.2.8</mybatis-version>
  16. <mybatis-spring-version>1.2.2</mybatis-spring-version>
  17. <org.aspectj-version>1.6.10</org.aspectj-version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. </properties>
  20. <profiles>
  21. <profile>
  22. <id>local</id>
  23. <activation>
  24. <activeByDefault>true</activeByDefault>
  25. </activation>
  26. <properties>
  27. <profiles.activation>local</profiles.activation>
  28. </properties>
  29. </profile>
  30. <profile>
  31. <id>prod</id>
  32. <properties>
  33. <profiles.activation>prod</profiles.activation>
  34. </properties>
  35. </profile>
  36. <profile>
  37. <id>test</id>
  38. <properties>
  39. <profiles.activation>test</profiles.activation>
  40. </properties>
  41. </profile>
  42. </profiles>
  43. <dependencies>
  44. <!-- spring -->
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-context</artifactId>
  48. <version>${org.springframework-version}</version>
  49. <exclusions>
  50. <!-- Exclude Commons Logging in favor of SLF4j -->
  51. <exclusion>
  52. <groupId>commons-logging</groupId>
  53. <artifactId>commons-logging</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>javax.annotation</groupId>
  59. <artifactId>jsr250-api</artifactId>
  60. <version>1.0</version>
  61. </dependency>
  62. <!-- hibernate-validator -->
  63. <dependency>
  64. <groupId>org.hibernate</groupId>
  65. <artifactId>hibernate-validator</artifactId>
  66. <version>5.4.0.Final</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>javax.xml.bind</groupId>
  70. <artifactId>jaxb-api</artifactId>
  71. <version>2.3.0</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-web</artifactId>
  76. <version>${org.springframework-version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-webmvc</artifactId>
  81. <version>${org.springframework-version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-jdbc</artifactId>
  86. <version>${org.springframework-version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework</groupId>
  90. <artifactId>spring-context-support</artifactId>
  91. <version>${org.springframework-version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework</groupId>
  95. <artifactId>spring-websocket</artifactId>
  96. <version>${org.springframework-version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework</groupId>
  100. <artifactId>spring-messaging</artifactId>
  101. <version>${org.springframework-version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.data</groupId>
  105. <artifactId>spring-data-redis</artifactId>
  106. <version>1.8.3.RELEASE</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.thymeleaf</groupId>
  110. <artifactId>thymeleaf-spring4</artifactId>
  111. <version>3.0.5.RELEASE</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>nz.net.ultraq.thymeleaf</groupId>
  115. <artifactId>thymeleaf-layout-dialect</artifactId>
  116. <version>2.2.1</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.github.theborakompanioni</groupId>
  120. <artifactId>thymeleaf-extras-shiro</artifactId>
  121. <version>2.0.0</version>
  122. </dependency>
  123. <!-- spring end -->
  124. <!-- redis begin -->
  125. <dependency>
  126. <groupId>redis.clients</groupId>
  127. <artifactId>jedis</artifactId>
  128. <version>2.9.0</version>
  129. </dependency>
  130. <!-- redis end -->
  131. <!-- mybatis start -->
  132. <dependency>
  133. <groupId>org.mybatis</groupId>
  134. <artifactId>mybatis</artifactId>
  135. <version>${mybatis-version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.mybatis</groupId>
  139. <artifactId>mybatis-spring</artifactId>
  140. <version>${mybatis-spring-version}</version>
  141. </dependency>
  142. <!-- mybatis end -->
  143. <!-- JDBC connections pooling -->
  144. <dependency>
  145. <groupId>com.alibaba</groupId>
  146. <artifactId>druid</artifactId>
  147. <version>1.0.25</version>
  148. <exclusions>
  149. <exclusion>
  150. <groupId>com.alibaba</groupId>
  151. <artifactId>jconsole</artifactId>
  152. </exclusion>
  153. <exclusion>
  154. <groupId>com.alibaba</groupId>
  155. <artifactId>tools</artifactId>
  156. </exclusion>
  157. </exclusions>
  158. </dependency>
  159. <!-- JDBC connections pooling end -->
  160. <!-- jackson start -->
  161. <dependency>
  162. <groupId>com.fasterxml.jackson.core</groupId>
  163. <artifactId>jackson-databind</artifactId>
  164. <version>2.8.2</version>
  165. </dependency>
  166. <!-- jackson end -->
  167. <!-- mysql -->
  168. <dependency>
  169. <groupId>mysql</groupId>
  170. <artifactId>mysql-connector-java</artifactId>
  171. <version>5.1.40</version>
  172. </dependency>
  173. <!-- Logging -->
  174. <dependency>
  175. <groupId>org.slf4j</groupId>
  176. <artifactId>slf4j-api</artifactId>
  177. <version>${org.slf4j-version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.slf4j</groupId>
  181. <artifactId>jcl-over-slf4j</artifactId>
  182. <version>${org.slf4j-version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.slf4j</groupId>
  186. <artifactId>slf4j-log4j12</artifactId>
  187. <version>${org.slf4j-version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>log4j</groupId>
  191. <artifactId>log4j</artifactId>
  192. <version>1.2.17</version>
  193. <exclusions>
  194. <exclusion>
  195. <groupId>javax.mail</groupId>
  196. <artifactId>mail</artifactId>
  197. </exclusion>
  198. <exclusion>
  199. <groupId>javax.jms</groupId>
  200. <artifactId>jms</artifactId>
  201. </exclusion>
  202. <exclusion>
  203. <groupId>com.sun.jdmk</groupId>
  204. <artifactId>jmxtools</artifactId>
  205. </exclusion>
  206. <exclusion>
  207. <groupId>com.sun.jmx</groupId>
  208. <artifactId>jmxri</artifactId>
  209. </exclusion>
  210. </exclusions>
  211. </dependency>
  212. <!-- common lang -->
  213. <dependency>
  214. <groupId>org.apache.commons</groupId>
  215. <artifactId>commons-lang3</artifactId>
  216. <version>3.4</version>
  217. </dependency>
  218. <!-- common codec -->
  219. <dependency>
  220. <groupId>commons-codec</groupId>
  221. <artifactId>commons-codec</artifactId>
  222. <version>1.10</version>
  223. </dependency>
  224. <!-- common fileupload -->
  225. <dependency>
  226. <groupId>commons-fileupload</groupId>
  227. <artifactId>commons-fileupload</artifactId>
  228. <version>1.3.1</version>
  229. </dependency>
  230. <!-- quartz -->
  231. <dependency>
  232. <groupId>org.quartz-scheduler</groupId>
  233. <artifactId>quartz</artifactId>
  234. <version>1.8.5</version>
  235. </dependency>
  236. <!-- Servlet -->
  237. <dependency>
  238. <groupId>javax.servlet</groupId>
  239. <artifactId>javax.servlet-api</artifactId>
  240. <version>3.1.0</version>
  241. <scope>provided</scope>
  242. </dependency>
  243. <!-- shiro -->
  244. <dependency>
  245. <groupId>org.apache.shiro</groupId>
  246. <artifactId>shiro-web</artifactId>
  247. <version>${shiro-version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.shiro</groupId>
  251. <artifactId>shiro-quartz</artifactId>
  252. <version>${shiro-version}</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.shiro</groupId>
  256. <artifactId>shiro-spring</artifactId>
  257. <version>${shiro-version}</version>
  258. </dependency>
  259. <!-- Test -->
  260. <dependency>
  261. <groupId>junit</groupId>
  262. <artifactId>junit</artifactId>
  263. <version>4.12</version>
  264. <scope>test</scope>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.springframework</groupId>
  268. <artifactId>spring-test</artifactId>
  269. <version>${org.springframework-version}</version>
  270. <scope>test</scope>
  271. </dependency>
  272. <dependency>
  273. <groupId>com.alibaba</groupId>
  274. <artifactId>fastjson</artifactId>
  275. <version>1.2.31</version>
  276. </dependency>
  277. <!-- AspectJ -->
  278. <dependency>
  279. <groupId>org.aspectj</groupId>
  280. <artifactId>aspectjrt</artifactId>
  281. <version>${org.aspectj-version}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.aspectj</groupId>
  285. <artifactId>aspectjweaver</artifactId>
  286. <version>${org.aspectj-version}</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>cglib</groupId>
  290. <artifactId>cglib</artifactId>
  291. <version>2.2.2</version>
  292. </dependency>
  293. <!-- JSR-303 bean validator -->
  294. <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
  295. <dependency>
  296. <groupId>org.hibernate</groupId>
  297. <artifactId>hibernate-validator</artifactId>
  298. <version>5.2.4.Final</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>javax.validation</groupId>
  302. <artifactId>validation-api</artifactId>
  303. <version>1.1.0.Final</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.jboss.logging</groupId>
  307. <artifactId>jboss-logging</artifactId>
  308. <version>3.2.1.Final</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>com.fasterxml</groupId>
  312. <artifactId>classmate</artifactId>
  313. <version>1.1.0</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>com.googlecode.json-simple</groupId>
  317. <artifactId>json-simple</artifactId>
  318. <version>1.1.1</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.apache.poi</groupId>
  322. <artifactId>poi-ooxml</artifactId>
  323. <version>3.17</version>
  324. </dependency>
  325. <dependency>
  326. <groupId>com.aliyun</groupId>
  327. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  328. <version>1.0.0</version>
  329. </dependency>
  330. <dependency>
  331. <groupId>com.aliyun</groupId>
  332. <artifactId>aliyun-java-sdk-core</artifactId>
  333. <version>3.5.0</version>
  334. </dependency>
  335. <dependency>
  336. <groupId>org.apache.httpcomponents</groupId>
  337. <artifactId>httpasyncclient</artifactId>
  338. <version>4.1.3</version>
  339. </dependency>
  340. <!-- jpush -->
  341. <dependency>
  342. <groupId>cn.jpush.api</groupId>
  343. <artifactId>jiguang-common</artifactId>
  344. <version>1.0.8</version>
  345. </dependency>
  346. <dependency>
  347. <groupId>io.netty</groupId>
  348. <artifactId>netty-all</artifactId>
  349. <version>4.1.6.Final</version>
  350. <scope>compile</scope>
  351. </dependency>
  352. <dependency>
  353. <groupId>com.google.code.gson</groupId>
  354. <artifactId>Gson</artifactId>
  355. <version>2.5</version>
  356. </dependency>
  357. <!-- ffmpeg -->
  358. <dependency>
  359. <groupId>net.bramp.ffmpeg</groupId>
  360. <artifactId>ffmpeg</artifactId>
  361. <version>0.6.2</version>
  362. </dependency>
  363. <!-- commons -->
  364. <dependency>
  365. <groupId>commons-net</groupId>
  366. <artifactId>commons-net</artifactId>
  367. <version>3.6</version>
  368. </dependency>
  369. </dependencies>
  370. <build>
  371. <resources>
  372. <resource>
  373. <directory>src/resources</directory>
  374. <includes>
  375. <include>**/*.properties</include>
  376. <include>**/*.xml</include>
  377. <include>**/*.ini</include>
  378. </includes>
  379. <filtering>false</filtering>
  380. </resource>
  381. <resource>
  382. <directory>src/main/java</directory>
  383. <includes>
  384. <include>**/*.xml</include>
  385. </includes>
  386. <filtering>false</filtering>
  387. </resource>
  388. </resources>
  389. <plugins>
  390. <plugin>
  391. <groupId>org.apache.maven.plugins</groupId>
  392. <artifactId>maven-compiler-plugin</artifactId>
  393. <version>3.5.1</version>
  394. <configuration>
  395. <source>1.8</source>
  396. <target>1.8</target>
  397. <encoding>utf8</encoding>
  398. <compilerArgument>-Xlint:all</compilerArgument>
  399. <showWarnings>true</showWarnings>
  400. <showDeprecation>true</showDeprecation>
  401. <skip>true</skip>
  402. </configuration>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-surefire-plugin</artifactId>
  407. <version>2.5</version>
  408. <configuration>
  409. <skip>true</skip>
  410. </configuration>
  411. </plugin>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-war-plugin</artifactId>
  415. <version>3.1.0</version>
  416. <configuration>
  417. <warName>${profiles.activation}</warName>
  418. <!-- 激活spring profile -->
  419. <webResources>
  420. <resource>
  421. <filtering>true</filtering>
  422. <directory>src/main/webapp</directory>
  423. <includes>
  424. <include>**/**</include>
  425. </includes>
  426. </resource>
  427. <resource>
  428. <filtering>true</filtering>
  429. <directory>src/main/resources</directory>
  430. <targetPath>WEB-INF/classes</targetPath>
  431. <includes>
  432. <include>**/**</include>
  433. </includes>
  434. </resource>
  435. </webResources>
  436. <warSourceDirectory>src/main/webapp</warSourceDirectory>
  437. <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
  438. </configuration>
  439. </plugin>
  440. </plugins>
  441. </build>
  442. <repositories>
  443. <repository>
  444. <id>aliyun-repos</id>
  445. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  446. <snapshots>
  447. <enabled>false</enabled>
  448. </snapshots>
  449. </repository>
  450. </repositories>
  451. <pluginRepositories>
  452. <pluginRepository>
  453. <id>aliyun-plugin</id>
  454. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  455. <snapshots>
  456. <enabled>false</enabled>
  457. </snapshots>
  458. </pluginRepository>
  459. </pluginRepositories>
  460. </project>