pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.kmall</groupId>
  7. <artifactId>kmall-pt</artifactId>
  8. <packaging>pom</packaging>
  9. <version>3.1.0</version>
  10. <modules>
  11. <module>kmall-admin</module>
  12. <module>kmall-api</module>
  13. <module>kmall-common</module>
  14. <module>kmall-gen</module>
  15. <module>kmall-framework</module>
  16. <module>kmall-schedule</module>
  17. </modules>
  18. <properties>
  19. <kmall-version>3.1.0</kmall-version>
  20. <java-version>1.8</java-version>
  21. <servlet-version>3.1.0</servlet-version>
  22. <junit-version>4.12</junit-version>
  23. <springframework-version>4.3.7.RELEASE</springframework-version>
  24. <mybatis-version>3.4.1</mybatis-version>
  25. <mybatis-spring-version>1.3.0</mybatis-spring-version>
  26. <mysql-version>5.1.39</mysql-version>
  27. <hibernate-validator-version>5.4.1.Final</hibernate-validator-version>
  28. <druid-version>1.0.28</druid-version>
  29. <mariadb-version>2.0.2</mariadb-version>
  30. <HikariCP-version>2.6.3</HikariCP-version>
  31. <commons-lang-version>2.6</commons-lang-version>
  32. <commons-fileupload-version>1.3.1</commons-fileupload-version>
  33. <commons-io-version>2.5</commons-io-version>
  34. <commons-codec-version>1.10</commons-codec-version>
  35. <commons-configuration-version>1.10</commons-configuration-version>
  36. <slf4j-version>1.7.19</slf4j-version>
  37. <logback-version>1.2.3</logback-version>
  38. <logback-ext-spring-version>0.1.5</logback-ext-spring-version>
  39. <log4j-version>1.2.17</log4j-version>
  40. <fastjson-version>1.2.30</fastjson-version>
  41. <shiro-version>1.3.2</shiro-version>
  42. <kaptcha-version>0.0.9</kaptcha-version>
  43. <velocity-version>1.7</velocity-version>
  44. <velocity-tools-version>2.0</velocity-tools-version>
  45. <jstl-version>1.2</jstl-version>
  46. <taglibs-version>1.1.2</taglibs-version>
  47. <freemarker-version>2.3.23</freemarker-version>
  48. </properties>
  49. <!-- 阿里云maven仓库 -->
  50. <repositories>
  51. <repository>
  52. <id>public</id>
  53. <name>aliyun nexus</name>
  54. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  55. <releases>
  56. <enabled>true</enabled>
  57. </releases>
  58. </repository>
  59. </repositories>
  60. <pluginRepositories>
  61. <pluginRepository>
  62. <id>public</id>
  63. <name>aliyun nexus</name>
  64. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  65. <releases>
  66. <enabled>true</enabled>
  67. </releases>
  68. <snapshots>
  69. <enabled>false</enabled>
  70. </snapshots>
  71. </pluginRepository>
  72. </pluginRepositories>
  73. <dependencies>
  74. <dependency>
  75. <groupId>junit</groupId>
  76. <artifactId>junit</artifactId>
  77. <version>${junit-version}</version>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.servlet</groupId>
  82. <artifactId>javax.servlet-api</artifactId>
  83. <version>${servlet-version}</version>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.mybatis</groupId>
  88. <artifactId>mybatis</artifactId>
  89. <version>${mybatis-version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.mybatis</groupId>
  93. <artifactId>mybatis-spring</artifactId>
  94. <version>${mybatis-spring-version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.hibernate</groupId>
  98. <artifactId>hibernate-validator</artifactId>
  99. <version>${hibernate-validator-version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework</groupId>
  103. <artifactId>spring-webmvc</artifactId>
  104. <version>${springframework-version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework</groupId>
  108. <artifactId>spring-jdbc</artifactId>
  109. <version>${springframework-version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework</groupId>
  113. <artifactId>spring-context-support</artifactId>
  114. <version>${springframework-version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework</groupId>
  118. <artifactId>spring-aop</artifactId>
  119. <version>${springframework-version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.springframework</groupId>
  123. <artifactId>spring-aspects</artifactId>
  124. <version>${springframework-version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework</groupId>
  128. <artifactId>spring-test</artifactId>
  129. <version>${springframework-version}</version>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.slf4j</groupId>
  134. <artifactId>slf4j-api</artifactId>
  135. <version>${slf4j-version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.slf4j</groupId>
  139. <artifactId>slf4j-log4j12</artifactId>
  140. <version>${slf4j-version}</version>
  141. </dependency>
  142. <!--把spring日志转发给SLF4J,使用桥接jcl-over-slf4j-->
  143. <!--把Spring中使用的commons-logging替换成slf4j-->
  144. <dependency>
  145. <groupId>org.slf4j</groupId>
  146. <artifactId>jcl-over-slf4j</artifactId>
  147. <version>${slf4j-version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>log4j</groupId>
  151. <artifactId>log4j</artifactId>
  152. <version>${log4j-version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>ch.qos.logback</groupId>
  156. <artifactId>logback-core</artifactId>
  157. <version>${logback-version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>ch.qos.logback</groupId>
  161. <artifactId>logback-classic</artifactId>
  162. <version>${logback-version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.logback-extensions</groupId>
  166. <artifactId>logback-ext-spring</artifactId>
  167. <version>${logback-ext-spring-version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.zaxxer</groupId>
  171. <artifactId>HikariCP</artifactId>
  172. <version>${HikariCP-version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.mariadb.jdbc</groupId>
  176. <artifactId>mariadb-java-client</artifactId>
  177. <version>${mariadb-version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>mysql</groupId>
  181. <artifactId>mysql-connector-java</artifactId>
  182. <version>${mysql-version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.alibaba</groupId>
  186. <artifactId>druid</artifactId>
  187. <version>${druid-version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>commons-lang</groupId>
  191. <artifactId>commons-lang</artifactId>
  192. <version>${commons-lang-version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>commons-fileupload</groupId>
  196. <artifactId>commons-fileupload</artifactId>
  197. <version>${commons-fileupload-version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>commons-io</groupId>
  201. <artifactId>commons-io</artifactId>
  202. <version>${commons-io-version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.alibaba</groupId>
  206. <artifactId>fastjson</artifactId>
  207. <version>${fastjson-version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>commons-codec</groupId>
  211. <artifactId>commons-codec</artifactId>
  212. <version>${commons-codec-version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>commons-configuration</groupId>
  216. <artifactId>commons-configuration</artifactId>
  217. <version>${commons-configuration-version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.apache.shiro</groupId>
  221. <artifactId>shiro-core</artifactId>
  222. <version>${shiro-version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.shiro</groupId>
  226. <artifactId>shiro-spring</artifactId>
  227. <version>${shiro-version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.github.axet</groupId>
  231. <artifactId>kaptcha</artifactId>
  232. <version>${kaptcha-version}</version>
  233. </dependency>
  234. <!-- Velocity视图所需jar -->
  235. <dependency>
  236. <artifactId>velocity</artifactId>
  237. <groupId>org.apache.velocity</groupId>
  238. <version>${velocity-version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.apache.velocity</groupId>
  242. <artifactId>velocity-tools</artifactId>
  243. <version>${velocity-tools-version}</version>
  244. <exclusions>
  245. <exclusion>
  246. <artifactId>dom4j</artifactId>
  247. <groupId>dom4j</groupId>
  248. </exclusion>
  249. <exclusion>
  250. <artifactId>oro</artifactId>
  251. <groupId>oro</groupId>
  252. </exclusion>
  253. <exclusion>
  254. <artifactId>sslext</artifactId>
  255. <groupId>sslext</groupId>
  256. </exclusion>
  257. <exclusion>
  258. <artifactId>struts-core</artifactId>
  259. <groupId>org.apache.struts</groupId>
  260. </exclusion>
  261. <exclusion>
  262. <artifactId>struts-taglib</artifactId>
  263. <groupId>org.apache.struts</groupId>
  264. </exclusion>
  265. <exclusion>
  266. <artifactId>struts-tiles</artifactId>
  267. <groupId>org.apache.struts</groupId>
  268. </exclusion>
  269. <exclusion>
  270. <artifactId>commons-validator</artifactId>
  271. <groupId>commons-validator</groupId>
  272. </exclusion>
  273. <exclusion>
  274. <artifactId>commons-beanutils</artifactId>
  275. <groupId>commons-beanutils</groupId>
  276. </exclusion>
  277. <exclusion>
  278. <artifactId>commons-chain</artifactId>
  279. <groupId>commons-chain</groupId>
  280. </exclusion>
  281. <exclusion>
  282. <artifactId>commons-collections</artifactId>
  283. <groupId>commons-collections</groupId>
  284. </exclusion>
  285. </exclusions>
  286. </dependency>
  287. <!-- JSP视图所需jar -->
  288. <dependency>
  289. <groupId>jstl</groupId>
  290. <artifactId>jstl</artifactId>
  291. <version>${jstl-version}</version>
  292. </dependency>
  293. <dependency>
  294. <groupId>taglibs</groupId>
  295. <artifactId>standard</artifactId>
  296. <version>${taglibs-version}</version>
  297. </dependency>
  298. <!-- Freemarker视图所需jar -->
  299. <dependency>
  300. <groupId>org.freemarker</groupId>
  301. <artifactId>freemarker</artifactId>
  302. <version>${freemarker-version}</version>
  303. </dependency>
  304. </dependencies>
  305. <build>
  306. <plugins>
  307. <plugin>
  308. <groupId>org.apache.maven.plugins</groupId>
  309. <artifactId>maven-compiler-plugin</artifactId>
  310. <configuration>
  311. <source>${java-version}</source>
  312. <target>${java-version}</target>
  313. <!-- true:跳过测试 -->
  314. <skip>true</skip>
  315. <encoding>UTF-8</encoding>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-resources-plugin</artifactId>
  321. <configuration>
  322. <encoding>UTF-8</encoding>
  323. </configuration>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.tomcat.maven</groupId>
  327. <artifactId>tomcat7-maven-plugin</artifactId>
  328. <version>2.2</version>
  329. <configuration>
  330. <path>/</path>
  331. <charset>UTF-8</charset>
  332. <port>80</port>
  333. <uriEncoding>UTF-8</uriEncoding>
  334. </configuration>
  335. </plugin>
  336. </plugins>
  337. <resources>
  338. <resource>
  339. <directory>src/main/java</directory>
  340. <includes>
  341. <include>**/*.xml</include>
  342. <include>**/*.js</include>
  343. </includes>
  344. </resource>
  345. <resource>
  346. <directory>src/main/resources</directory>
  347. </resource>
  348. </resources>
  349. </build>
  350. </project>