pom.xml 14 KB

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