pom.xml 12 KB

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