pom.xml 13 KB

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