pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" 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.goafanti</groupId>
  6. <artifactId>aft</artifactId>
  7. <name>aft</name>
  8. <packaging>war</packaging>
  9. <version>1.0.0-BUILD-SNAPSHOT</version>
  10. <properties>
  11. <java-version>1.8</java-version>
  12. <org.springframework-version>4.2.5.RELEASE</org.springframework-version>
  13. <org.slf4j-version>1.7.21</org.slf4j-version>
  14. <shiro-version>1.2.6</shiro-version>
  15. <mybatis-version>3.2.8</mybatis-version>
  16. <mybatis-spring-version>1.2.2</mybatis-spring-version>
  17. <org.aspectj-version>1.6.10</org.aspectj-version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. </properties>
  20. <profiles>
  21. <profile>
  22. <id>aft_local</id>
  23. <activation>
  24. <activeByDefault>true</activeByDefault>
  25. </activation>
  26. <properties>
  27. <profiles.activation>local</profiles.activation>
  28. </properties>
  29. </profile>
  30. <profile>
  31. <id>aft_dev</id>
  32. <properties>
  33. <profiles.activation>dev</profiles.activation>
  34. </properties>
  35. </profile>
  36. <profile>
  37. <id>aft_prod</id>
  38. <properties>
  39. <profiles.activation>prod</profiles.activation>
  40. </properties>
  41. </profile>
  42. <profile>
  43. <id>aft_test</id>
  44. <properties>
  45. <profiles.activation>test</profiles.activation>
  46. </properties>
  47. </profile>
  48. </profiles>
  49. <dependencies>
  50. <!-- spring -->
  51. <dependency>
  52. <groupId>org.springframework</groupId>
  53. <artifactId>spring-context</artifactId>
  54. <version>${org.springframework-version}</version>
  55. <exclusions>
  56. <!-- Exclude Commons Logging in favor of SLF4j -->
  57. <exclusion>
  58. <groupId>commons-logging</groupId>
  59. <artifactId>commons-logging</artifactId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-web</artifactId>
  66. <version>${org.springframework-version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-webmvc</artifactId>
  71. <version>${org.springframework-version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-jdbc</artifactId>
  76. <version>${org.springframework-version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-context-support</artifactId>
  81. <version>${org.springframework-version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-websocket</artifactId>
  86. <version>${org.springframework-version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework</groupId>
  90. <artifactId>spring-messaging</artifactId>
  91. <version>${org.springframework-version}</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.8.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.39</version>
  157. </dependency>
  158. <!-- Logging -->
  159. <dependency>
  160. <groupId>org.slf4j</groupId>
  161. <artifactId>slf4j-api</artifactId>
  162. <version>${org.slf4j-version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.slf4j</groupId>
  166. <artifactId>jcl-over-slf4j</artifactId>
  167. <version>${org.slf4j-version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.slf4j</groupId>
  171. <artifactId>slf4j-log4j12</artifactId>
  172. <version>${org.slf4j-version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>log4j</groupId>
  176. <artifactId>log4j</artifactId>
  177. <version>1.2.17</version>
  178. <exclusions>
  179. <exclusion>
  180. <groupId>javax.mail</groupId>
  181. <artifactId>mail</artifactId>
  182. </exclusion>
  183. <exclusion>
  184. <groupId>javax.jms</groupId>
  185. <artifactId>jms</artifactId>
  186. </exclusion>
  187. <exclusion>
  188. <groupId>com.sun.jdmk</groupId>
  189. <artifactId>jmxtools</artifactId>
  190. </exclusion>
  191. <exclusion>
  192. <groupId>com.sun.jmx</groupId>
  193. <artifactId>jmxri</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <!-- common lang -->
  198. <dependency>
  199. <groupId>org.apache.commons</groupId>
  200. <artifactId>commons-lang3</artifactId>
  201. <version>3.4</version>
  202. </dependency>
  203. <!-- common codec -->
  204. <dependency>
  205. <groupId>commons-codec</groupId>
  206. <artifactId>commons-codec</artifactId>
  207. <version>1.10</version>
  208. </dependency>
  209. <!-- common fileupload -->
  210. <dependency>
  211. <groupId>commons-fileupload</groupId>
  212. <artifactId>commons-fileupload</artifactId>
  213. <version>1.3.1</version>
  214. </dependency>
  215. <!-- quartz -->
  216. <dependency>
  217. <groupId>org.quartz-scheduler</groupId>
  218. <artifactId>quartz</artifactId>
  219. <version>1.8.5</version>
  220. </dependency>
  221. <!-- Servlet -->
  222. <dependency>
  223. <groupId>javax.servlet</groupId>
  224. <artifactId>javax.servlet-api</artifactId>
  225. <version>3.1.0</version>
  226. <scope>provided</scope>
  227. </dependency>
  228. <!-- shiro -->
  229. <dependency>
  230. <groupId>org.apache.shiro</groupId>
  231. <artifactId>shiro-web</artifactId>
  232. <version>${shiro-version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.shiro</groupId>
  236. <artifactId>shiro-quartz</artifactId>
  237. <version>${shiro-version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.shiro</groupId>
  241. <artifactId>shiro-spring</artifactId>
  242. <version>${shiro-version}</version>
  243. </dependency>
  244. <!-- Test -->
  245. <dependency>
  246. <groupId>junit</groupId>
  247. <artifactId>junit</artifactId>
  248. <version>4.12</version>
  249. <scope>test</scope>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.springframework</groupId>
  253. <artifactId>spring-test</artifactId>
  254. <version>${org.springframework-version}</version>
  255. <scope>test</scope>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.alibaba</groupId>
  259. <artifactId>fastjson</artifactId>
  260. <version>1.2.16</version>
  261. </dependency>
  262. <!-- AspectJ -->
  263. <dependency>
  264. <groupId>org.aspectj</groupId>
  265. <artifactId>aspectjrt</artifactId>
  266. <version>${org.aspectj-version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.aspectj</groupId>
  270. <artifactId>aspectjweaver</artifactId>
  271. <version>${org.aspectj-version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>cglib</groupId>
  275. <artifactId>cglib</artifactId>
  276. <version>2.2.2</version>
  277. </dependency>
  278. <!-- JSR-303 bean validator -->
  279. <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
  280. <dependency>
  281. <groupId>org.hibernate</groupId>
  282. <artifactId>hibernate-validator</artifactId>
  283. <version>5.2.4.Final</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>javax.validation</groupId>
  287. <artifactId>validation-api</artifactId>
  288. <version>1.1.0.Final</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.jboss.logging</groupId>
  292. <artifactId>jboss-logging</artifactId>
  293. <version>3.2.1.Final</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.fasterxml</groupId>
  297. <artifactId>classmate</artifactId>
  298. <version>1.1.0</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>com.googlecode.json-simple</groupId>
  302. <artifactId>json-simple</artifactId>
  303. <version>1.1.1</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.apache.poi</groupId>
  307. <artifactId>poi</artifactId>
  308. <version>3.15</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>com.aliyun</groupId>
  312. <artifactId>aliyun-java-sdk-core</artifactId>
  313. <version>2.4.2</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>com.aliyun</groupId>
  317. <artifactId>aliyun-java-sdk-sms</artifactId>
  318. <version>3.0.0-rc1</version>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.apache.httpcomponents</groupId>
  322. <artifactId>httpasyncclient</artifactId>
  323. <version>4.1.3</version>
  324. </dependency>
  325. </dependencies>
  326. <build>
  327. <resources>
  328. <resource>
  329. <directory>src/resources</directory>
  330. <includes>
  331. <include>**/*.properties</include>
  332. <include>**/*.xml</include>
  333. <include>**/*.ini</include>
  334. </includes>
  335. <filtering>false</filtering>
  336. </resource>
  337. <resource>
  338. <directory>src/main/java</directory>
  339. <includes>
  340. <include>**/*.xml</include>
  341. </includes>
  342. <filtering>false</filtering>
  343. </resource>
  344. </resources>
  345. <plugins>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-compiler-plugin</artifactId>
  349. <version>3.5.1</version>
  350. <configuration>
  351. <source>1.8</source>
  352. <target>1.8</target>
  353. <encoding>utf8</encoding>
  354. <compilerArgument>-Xlint:all</compilerArgument>
  355. <showWarnings>true</showWarnings>
  356. <showDeprecation>true</showDeprecation>
  357. </configuration>
  358. </plugin>
  359. <plugin>
  360. <groupId>org.apache.maven.plugins</groupId>
  361. <artifactId>maven-war-plugin</artifactId>
  362. <configuration>
  363. <warName>${profiles.activation}</warName>
  364. <!-- 激活spring profile -->
  365. <webResources>
  366. <resource>
  367. <filtering>true</filtering>
  368. <directory>src/main/webapp</directory>
  369. <includes>
  370. <include>**/**</include>
  371. </includes>
  372. </resource>
  373. <resource>
  374. <filtering>true</filtering>
  375. <directory>src/main/resources</directory>
  376. <targetPath>WEB-INF/classes</targetPath>
  377. <includes>
  378. <include>**/**</include>
  379. </includes>
  380. </resource>
  381. </webResources>
  382. <warSourceDirectory>src/main/webapp</warSourceDirectory>
  383. <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
  384. </configuration>
  385. </plugin>
  386. </plugins>
  387. </build>
  388. </project>