pom.xml 13 KB

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