pom.xml 12 KB

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