pom.xml 14 KB

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