pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.jeff</groupId>
  5. <artifactId>tianti</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8. <modules>
  9. <module>tianti-common</module>
  10. <module>tianti-org</module>
  11. <module>tianti-modules</module>
  12. <module>tianti-cms</module>
  13. </modules>
  14. <!-- 主要依赖库的版本定义 -->
  15. <properties>
  16. <!-- 定义资源文件的编码格式-->
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <!-- 依赖库版本定义-->
  19. <tianti.version>1.0.0</tianti.version>
  20. <junit.version>4.12</junit.version>
  21. <spring.version>4.2.5.RELEASE</spring.version>
  22. <hibernate.version>4.3.5.Final</hibernate.version>
  23. <hibernate.annotations.version>4.0.4.Final</hibernate.annotations.version>
  24. <mysql.driver.version>5.1.22</mysql.driver.version>
  25. <shiro.version>1.3.2</shiro.version>
  26. <jackson.version>1.9.2</jackson.version>
  27. <fastjson.version>1.2.20</fastjson.version>
  28. <log4j2.version>2.7</log4j2.version>
  29. <slf4j.version>1.7.21</slf4j.version>
  30. <poi.version>3.15</poi.version>
  31. <commons-io.version>2.4</commons-io.version>
  32. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  33. <servlet.version>4.0.0-b01</servlet.version>
  34. <jstl.version>1.2</jstl.version>
  35. </properties>
  36. <!-- 描述项目的所有依赖包-->
  37. <dependencies>
  38. <!-- Spring相关项目依赖 start -->
  39. <!-- Spring核心依赖 start -->
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-core</artifactId><!-- 包含Spring框架基本的核心工具类 -->
  43. <version>${spring.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework</groupId>
  47. <artifactId>spring-beans</artifactId><!-- springIoC(依赖注入)的基础工具类-->
  48. <version>${spring.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-context</artifactId><!-- spring 提供在基于IoC 功能上的扩展服务 -->
  53. <version>${spring.version}</version>
  54. </dependency>
  55. <!-- Spring核心依赖 end -->
  56. <!-- spring 持久层依赖start -->
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-tx</artifactId><!-- 封装了spring对于事物的控制 -->
  60. <version>${spring.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework</groupId>
  64. <artifactId>spring-jdbc</artifactId><!-- 包含对Spring对JDBC数据访问进行封装的所有类 -->
  65. <version>${spring.version}</version>
  66. </dependency>
  67. <!-- spring 持久层依赖end -->
  68. <!-- Spring web相关依赖 start -->
  69. <dependency>
  70. <groupId>org.springframework</groupId>
  71. <artifactId>spring-web</artifactId>
  72. <version>${spring.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework</groupId>
  76. <artifactId>spring-webmvc</artifactId><!-- Spring Web MVC是一种基于Java的实现了Web MVC设计模式的请求驱动类型的轻量级Web框架 -->
  77. <version>${spring.version}</version>
  78. </dependency>
  79. <!-- Spring web相关依赖 end -->
  80. <!-- Spring 其它依赖 -->
  81. <dependency>
  82. <groupId>org.springframework</groupId><!-- spring面向切面编程,提供AOP(面向切面编程) -->
  83. <artifactId>spring-aop</artifactId>
  84. <version>${spring.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-context-support</artifactId>
  89. <version>${spring.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework</groupId>
  93. <artifactId>spring-oxm</artifactId>
  94. <version>${spring.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.aspectj</groupId>
  98. <artifactId>aspectjweaver</artifactId>
  99. <version>1.8.10</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.data</groupId>
  103. <artifactId>spring-data-jpa</artifactId>
  104. <version>1.5.2.RELEASE</version>
  105. </dependency>
  106. <!-- Spring其他依赖 end-->
  107. <!-- Spring相关项目依赖 end -->
  108. <!-- hibernate相关项目依赖 start -->
  109. <dependency>
  110. <groupId>org.hibernate</groupId>
  111. <artifactId>hibernate-core</artifactId>
  112. <version>${hibernate.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.hibernate</groupId>
  116. <artifactId>hibernate-entitymanager</artifactId>
  117. <version>${hibernate.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.hibernate.common</groupId>
  121. <artifactId>hibernate-commons-annotations</artifactId>
  122. <version>${hibernate.annotations.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.hibernate.javax.persistence</groupId>
  126. <artifactId>hibernate-jpa-2.1-api</artifactId>
  127. <version>1.0.0.Final</version>
  128. </dependency>
  129. <!-- hibernate相关项目依赖 end -->
  130. <!-- mysql数据库相关依赖start -->
  131. <dependency>
  132. <groupId>mysql</groupId>
  133. <artifactId>mysql-connector-java</artifactId><!-- 导入Mysql数据库驱动包 -->
  134. <version>${mysql.driver.version}</version>
  135. </dependency>
  136. <!-- mysql数据库相关依赖end -->
  137. <!-- log日志相关依赖 start -->
  138. <dependency>
  139. <groupId>log4j</groupId>
  140. <artifactId>log4j</artifactId>
  141. <version>1.2.17</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.slf4j</groupId>
  145. <artifactId>slf4j-api</artifactId><!-- slf4j -->
  146. <version>${slf4j.version}</version>
  147. </dependency>
  148. <!-- log日志相关依赖 end -->
  149. <!-- servlet atart -->
  150. <dependency>
  151. <groupId>javax.servlet</groupId>
  152. <artifactId>javax.servlet-api</artifactId><!-- j2ee web spec -->
  153. <version>${servlet.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>javax.servlet</groupId>
  157. <artifactId>jstl</artifactId><!-- JSTL标签依赖-->
  158. <version>${jstl.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>javax.validation</groupId>
  162. <artifactId>validation-api</artifactId>
  163. <version>1.1.0.Final</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>javax.servlet.jsp</groupId>
  167. <artifactId>jsp-api</artifactId>
  168. <version>2.2</version>
  169. </dependency>
  170. <!-- servlet end -->
  171. <!-- shiro start -->
  172. <dependency>
  173. <groupId>org.apache.shiro</groupId>
  174. <artifactId>shiro-core</artifactId>
  175. <version>${shiro.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.shiro</groupId>
  179. <artifactId>shiro-spring</artifactId>
  180. <version>${shiro.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.shiro</groupId>
  184. <artifactId>shiro-web</artifactId>
  185. <version>${shiro.version}</version>
  186. </dependency>
  187. <!-- shiro end -->
  188. <!-- jackson start -->
  189. <dependency>
  190. <groupId>com.fasterxml.jackson.core</groupId>
  191. <artifactId>jackson-core</artifactId>
  192. <version>2.8.5</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.fasterxml.jackson.core</groupId>
  196. <artifactId>jackson-databind</artifactId>
  197. <version>2.8.5</version>
  198. </dependency>
  199. <!-- jackson end -->
  200. <!-- POI start -->
  201. <dependency>
  202. <groupId>org.apache.poi</groupId>
  203. <artifactId>poi</artifactId>
  204. <version>${poi.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.poi</groupId>
  208. <artifactId>poi-ooxml</artifactId>
  209. <version>${poi.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.poi</groupId>
  213. <artifactId>poi-ooxml-schemas</artifactId>
  214. <version>${poi.version}</version>
  215. </dependency>
  216. <!-- POI end -->
  217. <!-- commons-lang start -->
  218. <dependency>
  219. <groupId>org.apache.commons</groupId>
  220. <artifactId>commons-lang3</artifactId>
  221. <version>3.4</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>commons-fileupload</groupId>
  225. <artifactId>commons-fileupload</artifactId>
  226. <version>1.3</version>
  227. </dependency>
  228. <!-- commons-lang end -->
  229. <!-- tomcat jdbc start -->
  230. <dependency>
  231. <groupId>org.apache.tomcat</groupId>
  232. <artifactId>tomcat-jdbc</artifactId>
  233. <version>8.0.33</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.apache.tomcat</groupId>
  237. <artifactId>tomcat-juli</artifactId>
  238. <version>8.0.33</version>
  239. </dependency>
  240. <!-- tomcat jdbc end -->
  241. <!-- ehcache start -->
  242. <dependency>
  243. <groupId>net.sf.ehcache.internal</groupId>
  244. <artifactId>ehcache-core</artifactId>
  245. <version>2.10.0</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>net.sf.ehcache</groupId>
  249. <artifactId>ehcache-web</artifactId>
  250. <version>2.0.4</version>
  251. </dependency>
  252. <!-- ehcache end -->
  253. <!-- 单元测试框架 start -->
  254. <dependency>
  255. <groupId>junit</groupId>
  256. <artifactId>junit</artifactId>
  257. <version>${junit.version}</version>
  258. <scope>test</scope>
  259. </dependency>
  260. <!-- 单元测试框架 end -->
  261. </dependencies>
  262. <build>
  263. <plugins>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-compiler-plugin</artifactId>
  267. <configuration>
  268. <source>1.7</source>
  269. <target>1.7</target>
  270. </configuration>
  271. </plugin>
  272. </plugins>
  273. </build>
  274. </project>