pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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>com.example</groupId>
  6. <artifactId>springboot_v2</artifactId>
  7. <version>3.4</version>
  8. <packaging>jar</packaging>
  9. <name>springboot_v2</name>
  10. <description>springbootv2系统</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.0.0.RELEASE</version>
  15. <relativePath /> <!-- 从存储库查找父级 -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  22. <commons.io.version>2.5</commons.io.version>
  23. </properties>
  24. <!-- https://mvnrepository.com/ 查找jar网站 -->
  25. <dependencies>
  26. <!-- SpringBoot Web容器 -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <!-- SpringBoot集成mybatis框架 -->
  32. <dependency>
  33. <groupId>org.mybatis.spring.boot</groupId>
  34. <artifactId>mybatis-spring-boot-starter</artifactId>
  35. <version>1.3.2</version>
  36. </dependency>
  37. <!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
  38. <dependency>
  39. <groupId>io.netty</groupId>
  40. <artifactId>netty-all</artifactId>
  41. <version>4.1.36.Final</version>
  42. </dependency>
  43. <!-- By Wang jiawen 从本地类库引入阿里巴巴 fastjson 版本1.27 系统级别 路径根目录lib文件夹下 云地址 https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  44. <dependency>
  45. <groupId>fastjson</groupId>
  46. <artifactId>fastjson</artifactId>
  47. <version>1.2.17</version>
  48. <scope>system</scope>
  49. <systemPath>${project.basedir}/src/main/resources/lib/fastjson-1.2.17.jar</systemPath>
  50. </dependency>
  51. <!--By Wang jiawen lombok 从云引入 目的提供get set方法-->
  52. <dependency>
  53. <groupId>org.projectlombok</groupId>
  54. <artifactId>lombok</artifactId>
  55. <version>1.16.18</version>
  56. </dependency>
  57. <!-- SpringBoot 测试 -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-test</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <!-- 添加swagger2 -->
  64. <dependency>
  65. <groupId>io.springfox</groupId>
  66. <artifactId>springfox-swagger2</artifactId>
  67. <version>2.7.0</version>
  68. </dependency>
  69. <!-- swagger2-UI -->
  70. <dependency>
  71. <groupId>io.springfox</groupId>
  72. <artifactId>springfox-swagger-ui</artifactId>
  73. <version>2.7.0</version>
  74. </dependency>
  75. <!--GSON -->
  76. <dependency>
  77. <groupId>com.google.code.gson</groupId>
  78. <artifactId>gson</artifactId>
  79. </dependency>
  80. <!-- pageHelper -->
  81. <dependency>
  82. <groupId>com.github.pagehelper</groupId>
  83. <artifactId>pagehelper-spring-boot-starter</artifactId>
  84. <version>1.2.5</version>
  85. </dependency>
  86. <!-- mysql驱动7.0-->
  87. <dependency>
  88. <groupId>mysql</groupId>
  89. <artifactId>mysql-connector-java</artifactId>
  90. <version>5.1.40</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-websocket</artifactId>
  95. </dependency>
  96. <!-- mysql驱动8.0
  97. <dependency>
  98. <groupId>mysql</groupId>
  99. <artifactId>mysql-connector-java</artifactId>
  100. <version>8.0.11</version>
  101. </dependency>
  102. -->
  103. <!--druid 数据源监控-->
  104. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>druid-spring-boot-starter</artifactId>
  108. <version>1.1.10</version>
  109. </dependency>
  110. <!-- shiro权限 -->
  111. <dependency>
  112. <groupId>org.apache.shiro</groupId>
  113. <artifactId>shiro-spring</artifactId>
  114. <version>1.4.0</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-aop</artifactId>
  119. </dependency>
  120. <!-- shiro权限支持thymeleaf -->
  121. <dependency>
  122. <groupId>com.github.theborakompanioni</groupId>
  123. <artifactId>thymeleaf-extras-shiro</artifactId>
  124. <version>2.0.0</version>
  125. </dependency>
  126. <!-- thymeleaf模版 -->
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  130. </dependency>
  131. <!--常用工具类 -->
  132. <dependency>
  133. <groupId>org.apache.commons</groupId>
  134. <artifactId>commons-lang3</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-lang</groupId>
  138. <artifactId>commons-lang</artifactId>
  139. <version>2.4</version>
  140. </dependency>
  141. <!--io常用工具类 -->
  142. <dependency>
  143. <groupId>commons-io</groupId>
  144. <artifactId>commons-io</artifactId>
  145. <version>${commons.io.version}</version>
  146. </dependency>
  147. <!--文件上传工具类 -->
  148. <dependency>
  149. <groupId>commons-fileupload</groupId>
  150. <artifactId>commons-fileupload</artifactId>
  151. <version>${commons.fileupload.version}</version>
  152. </dependency>
  153. <!-- 热部署 -->
  154. <dependency>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-devtools</artifactId>
  157. <optional>true</optional>
  158. </dependency>
  159. <!-- Hutool是一个Java工具包 http://hutool.cn/ -->
  160. <dependency>
  161. <groupId>cn.hutool</groupId>
  162. <artifactId>hutool-all</artifactId>
  163. <version>4.1.12</version>
  164. </dependency>
  165. <!-- google验证码 -->
  166. <dependency>
  167. <groupId>com.github.penggle</groupId>
  168. <artifactId>kaptcha</artifactId>
  169. <version>2.3.2</version>
  170. </dependency>
  171. <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
  172. <dependency>
  173. <groupId>org.apache.velocity</groupId>
  174. <artifactId>velocity</artifactId>
  175. <version>1.7</version>
  176. </dependency>
  177. <!-- websocket -->
  178. <dependency>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-starter-websocket</artifactId>
  181. </dependency>
  182. <!-- 配置文件读取 -->
  183. <dependency>
  184. <groupId>commons-configuration</groupId>
  185. <artifactId>commons-configuration</artifactId>
  186. <version>1.10</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.springframework.boot</groupId>
  190. <artifactId>spring-boot-configuration-processor</artifactId>
  191. <optional>true</optional>
  192. </dependency>
  193. <!-- mail -->
  194. <dependency>
  195. <groupId>javax.mail</groupId>
  196. <artifactId>mail</artifactId>
  197. <version>1.4.7</version>
  198. </dependency>
  199. <!--百度UEditor依赖的jar包 -->
  200. <!-- <dependency>
  201. <groupId>org.json</groupId>
  202. <artifactId>json</artifactId>
  203. <version>20180813</version>
  204. </dependency>-->
  205. <dependency>
  206. <groupId>commons-codec</groupId>
  207. <artifactId>commons-codec</artifactId>
  208. <version>1.9</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>ueditor</groupId>
  212. <artifactId>1.1.2</artifactId>
  213. <version>1.8</version>
  214. <scope>system</scope>
  215. <systemPath>${project.basedir}/src/main/resources/lib/ueditor-1.1.2.jar</systemPath>
  216. </dependency>
  217. <!--quartz依赖-->
  218. <dependency>
  219. <groupId>org.quartz-scheduler</groupId>
  220. <artifactId>quartz</artifactId>
  221. <version>2.2.1</version>
  222. </dependency>
  223. <!-- 七牛云 -->
  224. <dependency>
  225. <groupId>com.qiniu</groupId>
  226. <artifactId>qiniu-java-sdk</artifactId>
  227. <version>[7.2.0, 7.2.99]</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.springframework.boot</groupId>
  231. <artifactId>spring-boot-configuration-processor</artifactId>
  232. <optional>true</optional>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.springframework.boot</groupId>
  236. <artifactId>spring-boot-starter-data-redis</artifactId>
  237. </dependency>
  238. </dependencies>
  239. <!--<build>
  240. &lt;!&ndash; 打包不带版本号 &ndash;&gt;
  241. &lt;!&ndash; <finalName>springboot_v2</finalName> &ndash;&gt;
  242. <plugins>
  243. &lt;!&ndash; JUnit 配置 &ndash;&gt;
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-surefire-plugin</artifactId>
  247. &lt;!&ndash;忽略测试启动类 &ndash;&gt;
  248. <configuration>
  249. <skip>true</skip>
  250. </configuration>
  251. </plugin>
  252. &lt;!&ndash; generator 配置&ndash;&gt;
  253. <plugin>
  254. <groupId>org.mybatis.generator</groupId>
  255. <artifactId>mybatis-generator-maven-plugin</artifactId>
  256. <version>1.3.7</version>
  257. <configuration>
  258. &lt;!&ndash;允许移动生成的文件 &ndash;&gt;
  259. <verbose>false</verbose>
  260. &lt;!&ndash;允许覆盖生成的文件 &ndash;&gt;
  261. <overwrite>false</overwrite>
  262. &lt;!&ndash;配置文件的路径 &ndash;&gt;
  263. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  264. </configuration>
  265. <dependencies>
  266. <dependency>
  267. <groupId>mysql</groupId>
  268. <artifactId>mysql-connector-java</artifactId>
  269. <version>${mysql.version}</version>
  270. </dependency>
  271. </dependencies>
  272. </plugin>
  273. &lt;!&ndash; jar运行配置 &ndash;&gt;
  274. <plugin>
  275. <groupId>org.springframework.boot</groupId>
  276. <artifactId>spring-boot-maven-plugin</artifactId>
  277. </plugin>
  278. </plugins>
  279. </build>-->
  280. <build>
  281. <plugins>
  282. <plugin>
  283. <groupId>org.springframework.boot</groupId>
  284. <artifactId>spring-boot-maven-plugin</artifactId>
  285. <configuration>
  286. <fork>true</fork>
  287. </configuration>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-war-plugin</artifactId>
  292. <version>2.3</version>
  293. <configuration>
  294. <webResources>
  295. <resource>
  296. <directory>${project.basedir}/src/main/resources/lib</directory>
  297. <targetPath>BOOT-INF/lib/</targetPath>
  298. <includes>
  299. <include>**/*.jar</include>
  300. </includes>
  301. </resource>
  302. </webResources>
  303. </configuration>
  304. </plugin>
  305. </plugins>
  306. <!-- <resources>
  307. <resource>
  308. <directory>src/main/resources/lib</directory>
  309. <targetPath>BOOT-INF/lib/</targetPath>
  310. <includes>
  311. <include>**/*.jar</include>
  312. </includes>
  313. </resource>
  314. <resource>
  315. <directory>src/main/resources</directory>
  316. <targetPath>BOOT-INF/classes/</targetPath>
  317. </resource>
  318. </resources>-->
  319. </build>
  320. <!-- 阿里云maven仓库 -->
  321. <repositories>
  322. <repository>
  323. <id>public</id>
  324. <name>aliyun nexus</name>
  325. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  326. <releases>
  327. <enabled>true</enabled>
  328. </releases>
  329. </repository>
  330. </repositories>
  331. <pluginRepositories>
  332. <pluginRepository>
  333. <id>public</id>
  334. <name>aliyun nexus</name>
  335. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  336. <releases>
  337. <enabled>true</enabled>
  338. </releases>
  339. <snapshots>
  340. <enabled>false</enabled>
  341. </snapshots>
  342. </pluginRepository>
  343. </pluginRepositories>
  344. </project>