pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. <!-- spring end -->
  94. <!-- redis begin -->
  95. <dependency>
  96. <groupId>redis.clients</groupId>
  97. <artifactId>jedis</artifactId>
  98. <version>2.8.0</version>
  99. </dependency>
  100. <!-- redis end -->
  101. <!-- mybatis start -->
  102. <dependency>
  103. <groupId>org.mybatis</groupId>
  104. <artifactId>mybatis</artifactId>
  105. <version>${mybatis-version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.mybatis</groupId>
  109. <artifactId>mybatis-spring</artifactId>
  110. <version>${mybatis-spring-version}</version>
  111. </dependency>
  112. <!-- mybatis end -->
  113. <!-- JDBC connections pooling -->
  114. <dependency>
  115. <groupId>com.alibaba</groupId>
  116. <artifactId>druid</artifactId>
  117. <version>1.0.25</version>
  118. <exclusions>
  119. <exclusion>
  120. <groupId>com.alibaba</groupId>
  121. <artifactId>jconsole</artifactId>
  122. </exclusion>
  123. <exclusion>
  124. <groupId>com.alibaba</groupId>
  125. <artifactId>tools</artifactId>
  126. </exclusion>
  127. </exclusions>
  128. </dependency>
  129. <!-- JDBC connections pooling end -->
  130. <!-- jackson start -->
  131. <dependency>
  132. <groupId>com.fasterxml.jackson.core</groupId>
  133. <artifactId>jackson-databind</artifactId>
  134. <version>2.8.2</version>
  135. </dependency>
  136. <!-- jackson end -->
  137. <!-- mysql -->
  138. <dependency>
  139. <groupId>mysql</groupId>
  140. <artifactId>mysql-connector-java</artifactId>
  141. <version>5.1.39</version>
  142. </dependency>
  143. <!-- Logging -->
  144. <dependency>
  145. <groupId>org.slf4j</groupId>
  146. <artifactId>slf4j-api</artifactId>
  147. <version>${org.slf4j-version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.slf4j</groupId>
  151. <artifactId>jcl-over-slf4j</artifactId>
  152. <version>${org.slf4j-version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.slf4j</groupId>
  156. <artifactId>slf4j-log4j12</artifactId>
  157. <version>${org.slf4j-version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>log4j</groupId>
  161. <artifactId>log4j</artifactId>
  162. <version>1.2.17</version>
  163. <exclusions>
  164. <exclusion>
  165. <groupId>javax.mail</groupId>
  166. <artifactId>mail</artifactId>
  167. </exclusion>
  168. <exclusion>
  169. <groupId>javax.jms</groupId>
  170. <artifactId>jms</artifactId>
  171. </exclusion>
  172. <exclusion>
  173. <groupId>com.sun.jdmk</groupId>
  174. <artifactId>jmxtools</artifactId>
  175. </exclusion>
  176. <exclusion>
  177. <groupId>com.sun.jmx</groupId>
  178. <artifactId>jmxri</artifactId>
  179. </exclusion>
  180. </exclusions>
  181. </dependency>
  182. <!-- common lang -->
  183. <dependency>
  184. <groupId>org.apache.commons</groupId>
  185. <artifactId>commons-lang3</artifactId>
  186. <version>3.4</version>
  187. </dependency>
  188. <!-- common codec -->
  189. <dependency>
  190. <groupId>commons-codec</groupId>
  191. <artifactId>commons-codec</artifactId>
  192. <version>1.10</version>
  193. </dependency>
  194. <!-- common fileupload -->
  195. <dependency>
  196. <groupId>commons-fileupload</groupId>
  197. <artifactId>commons-fileupload</artifactId>
  198. <version>1.3.1</version>
  199. </dependency>
  200. <!-- quartz -->
  201. <dependency>
  202. <groupId>org.quartz-scheduler</groupId>
  203. <artifactId>quartz</artifactId>
  204. <version>1.8.5</version>
  205. </dependency>
  206. <!-- Servlet -->
  207. <dependency>
  208. <groupId>javax.servlet</groupId>
  209. <artifactId>javax.servlet-api</artifactId>
  210. <version>3.1.0</version>
  211. <scope>provided</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>javax.servlet.jsp</groupId>
  215. <artifactId>jsp-api</artifactId>
  216. <version>2.2</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>javax.servlet</groupId>
  220. <artifactId>jstl</artifactId>
  221. <version>1.2</version>
  222. </dependency>
  223. <!-- shiro -->
  224. <dependency>
  225. <groupId>org.apache.shiro</groupId>
  226. <artifactId>shiro-web</artifactId>
  227. <version>${shiro-version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.apache.shiro</groupId>
  231. <artifactId>shiro-quartz</artifactId>
  232. <version>${shiro-version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.shiro</groupId>
  236. <artifactId>shiro-spring</artifactId>
  237. <version>${shiro-version}</version>
  238. </dependency>
  239. <!-- Test -->
  240. <dependency>
  241. <groupId>junit</groupId>
  242. <artifactId>junit</artifactId>
  243. <version>4.12</version>
  244. <scope>test</scope>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.springframework</groupId>
  248. <artifactId>spring-test</artifactId>
  249. <version>${org.springframework-version}</version>
  250. <scope>test</scope>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.alibaba</groupId>
  254. <artifactId>fastjson</artifactId>
  255. <version>1.2.16</version>
  256. </dependency>
  257. <!-- AspectJ -->
  258. <dependency>
  259. <groupId>org.aspectj</groupId>
  260. <artifactId>aspectjrt</artifactId>
  261. <version>${org.aspectj-version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.aspectj</groupId>
  265. <artifactId>aspectjweaver</artifactId>
  266. <version>${org.aspectj-version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>cglib</groupId>
  270. <artifactId>cglib</artifactId>
  271. <version>2.2.2</version>
  272. </dependency>
  273. <!-- JSR-303 bean validator -->
  274. <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
  275. <dependency>
  276. <groupId>org.hibernate</groupId>
  277. <artifactId>hibernate-validator</artifactId>
  278. <version>5.2.4.Final</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>javax.validation</groupId>
  282. <artifactId>validation-api</artifactId>
  283. <version>1.1.0.Final</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.jboss.logging</groupId>
  287. <artifactId>jboss-logging</artifactId>
  288. <version>3.2.1.Final</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>com.fasterxml</groupId>
  292. <artifactId>classmate</artifactId>
  293. <version>1.1.0</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.googlecode.json-simple</groupId>
  297. <artifactId>json-simple</artifactId>
  298. <version>1.1.1</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.apache.poi</groupId>
  302. <artifactId>poi</artifactId>
  303. <version>3.15</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>com.aliyun</groupId>
  307. <artifactId>aliyun-java-sdk-core</artifactId>
  308. <version>2.4.2</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>com.aliyun</groupId>
  312. <artifactId>aliyun-java-sdk-sms</artifactId>
  313. <version>3.0.0-rc1</version>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.apache.httpcomponents</groupId>
  317. <artifactId>httpasyncclient</artifactId>
  318. <version>4.1.3</version>
  319. </dependency>
  320. </dependencies>
  321. <build>
  322. <resources>
  323. <resource>
  324. <directory>src/resources</directory>
  325. <includes>
  326. <include>**/*.properties</include>
  327. <include>**/*.xml</include>
  328. <include>**/*.ini</include>
  329. </includes>
  330. <filtering>false</filtering>
  331. </resource>
  332. <resource>
  333. <directory>src/main/java</directory>
  334. <includes>
  335. <include>**/*.xml</include>
  336. </includes>
  337. <filtering>false</filtering>
  338. </resource>
  339. </resources>
  340. <plugins>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-compiler-plugin</artifactId>
  344. <version>3.5.1</version>
  345. <configuration>
  346. <source>1.8</source>
  347. <target>1.8</target>
  348. <encoding>utf8</encoding>
  349. <compilerArgument>-Xlint:all</compilerArgument>
  350. <showWarnings>true</showWarnings>
  351. <showDeprecation>true</showDeprecation>
  352. </configuration>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-war-plugin</artifactId>
  357. <configuration>
  358. <warName>${profiles.activation}</warName>
  359. <!-- 激活spring profile -->
  360. <webResources>
  361. <resource>
  362. <filtering>true</filtering>
  363. <directory>src/main/webapp</directory>
  364. <includes>
  365. <include>**/**</include>
  366. </includes>
  367. </resource>
  368. <resource>
  369. <filtering>true</filtering>
  370. <directory>src/main/resources</directory>
  371. <targetPath>WEB-INF/classes</targetPath>
  372. <includes>
  373. <include>**/**</include>
  374. </includes>
  375. </resource>
  376. </webResources>
  377. <warSourceDirectory>src/main/webapp</warSourceDirectory>
  378. <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
  379. </configuration>
  380. </plugin>
  381. </plugins>
  382. </build>
  383. </project>