pom.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.example</groupId>
  6. <artifactId>my_blog</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>my_blog Maven Webapp</name>
  10. <!-- FIXME change it to the project's website -->
  11. <url>http://www.example.com</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.7</maven.compiler.source>
  15. <maven.compiler.target>1.7</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.11</version>
  22. <scope>test</scope>
  23. </dependency>
  24. <!-- 添加servlet支持 -->
  25. <dependency>
  26. <groupId>javax.servlet</groupId>
  27. <artifactId>javax.servlet-api</artifactId>
  28. <version>4.0.1</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <!-- 添加jstl支持 -->
  32. <dependency>
  33. <groupId>javax.servlet</groupId>
  34. <artifactId>jstl</artifactId>
  35. <version>1.2</version>
  36. </dependency>
  37. <!-- 添加Spring支持 -->
  38. <dependency>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-core</artifactId>
  41. <version>5.3.19</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework</groupId>
  45. <artifactId>spring-beans</artifactId>
  46. <version>5.3.19</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework</groupId>
  50. <artifactId>spring-tx</artifactId>
  51. <version>5.3.19</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-context</artifactId>
  56. <version>5.3.19</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework</groupId>
  60. <artifactId>spring-context-support</artifactId>
  61. <version>5.3.19</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework</groupId>
  65. <artifactId>spring-web</artifactId>
  66. <version>5.3.19</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-webmvc</artifactId>
  71. <version>5.3.19</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-aop</artifactId>
  76. <version>5.3.19</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-aspects</artifactId>
  81. <version>5.3.19</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework</groupId>
  85. <artifactId>spring-jdbc</artifactId>
  86. <version>5.3.19</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.mybatis</groupId>
  90. <artifactId>mybatis-spring</artifactId>
  91. <version>2.0.7</version>
  92. </dependency>
  93. <!-- 添加日志支持 -->
  94. <dependency>
  95. <groupId>log4j</groupId>
  96. <artifactId>log4j</artifactId>
  97. <version>1.2.17</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.slf4j</groupId>
  101. <artifactId>slf4j-log4j12</artifactId>
  102. <version>2.0.0-alpha7</version>
  103. </dependency>
  104. <!-- 添加mybatis支持 -->
  105. <dependency>
  106. <groupId>org.mybatis</groupId>
  107. <artifactId>mybatis</artifactId>
  108. <version>3.5.9</version>
  109. </dependency>
  110. <!-- 添加JDBC驱动支持 -->
  111. <dependency>
  112. <groupId>mysql</groupId>
  113. <artifactId>mysql-connector-java</artifactId>
  114. <version>8.0.28</version>
  115. </dependency>
  116. <!-- 添加shiro支持 -->
  117. <dependency>
  118. <groupId>org.apache.shiro</groupId>
  119. <artifactId>shiro-core</artifactId>
  120. <version>1.9.0</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.shiro</groupId>
  124. <artifactId>shiro-web</artifactId>
  125. <version>1.9.0</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.shiro</groupId>
  129. <artifactId>shiro-spring</artifactId>
  130. <version>1.9.0</version>
  131. </dependency>
  132. <!-- 添加ueditor编辑器支持 -->
  133. <dependency>
  134. <groupId>commons-fileupload</groupId>
  135. <artifactId>commons-fileupload</artifactId>
  136. <version>1.4</version>
  137. </dependency>
  138. <!-- 添加apache公共包 -->
  139. <dependency>
  140. <groupId>commons-codec</groupId>
  141. <artifactId>commons-codec</artifactId>
  142. <version>1.15</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>commons-lang</groupId>
  146. <artifactId>commons-lang</artifactId>
  147. <version>2.6</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-beanutils</groupId>
  151. <artifactId>commons-beanutils</artifactId>
  152. <version>1.9.4</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-collections</groupId>
  156. <artifactId>commons-collections</artifactId>
  157. <version>3.2.2</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>commons-logging</groupId>
  161. <artifactId>commons-logging</artifactId>
  162. <version>1.2</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>net.sf.ezmorph</groupId>
  166. <artifactId>ezmorph</artifactId>
  167. <version>1.0.6</version>
  168. </dependency>
  169. <!-- 添加lucene支持 -->
  170. <dependency>
  171. <groupId>org.apache.lucene</groupId>
  172. <artifactId>lucene-core</artifactId>
  173. <version>9.1.0</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.lucene</groupId>
  177. <artifactId>lucene-analyzers-common</artifactId>
  178. <version>8.11.1</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.lucene</groupId>
  182. <artifactId>lucene-analyzers-smartcn</artifactId>
  183. <version>8.11.1</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.lucene</groupId>
  187. <artifactId>lucene-queryparser</artifactId>
  188. <version>9.1.0</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.lucene</groupId>
  192. <artifactId>lucene-highlighter</artifactId>
  193. <version>9.1.0</version>
  194. </dependency>
  195. <!-- 添加连接池druid支持 -->
  196. <dependency>
  197. <groupId>com.alibaba</groupId>
  198. <artifactId>druid</artifactId>
  199. <version>1.2.9</version>
  200. </dependency>
  201. <!-- 添加jsoup支持 -->
  202. <dependency>
  203. <groupId>org.jsoup</groupId>
  204. <artifactId>jsoup</artifactId>
  205. <version>1.8.3</version>
  206. </dependency>
  207. </dependencies>
  208. <build>
  209. <finalName>my_blog</finalName>
  210. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  211. <plugins>
  212. <plugin>
  213. <artifactId>maven-clean-plugin</artifactId>
  214. <version>3.1.0</version>
  215. </plugin>
  216. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  217. <plugin>
  218. <artifactId>maven-resources-plugin</artifactId>
  219. <version>3.0.2</version>
  220. </plugin>
  221. <plugin>
  222. <artifactId>maven-compiler-plugin</artifactId>
  223. <version>3.8.0</version>
  224. </plugin>
  225. <plugin>
  226. <artifactId>maven-surefire-plugin</artifactId>
  227. <version>2.22.1</version>
  228. </plugin>
  229. <plugin>
  230. <artifactId>maven-war-plugin</artifactId>
  231. <version>3.2.2</version>
  232. </plugin>
  233. <plugin>
  234. <artifactId>maven-install-plugin</artifactId>
  235. <version>2.5.2</version>
  236. </plugin>
  237. <plugin>
  238. <artifactId>maven-deploy-plugin</artifactId>
  239. <version>2.8.2</version>
  240. </plugin>
  241. </plugins>
  242. </pluginManagement>
  243. </build>
  244. </project>