pom.xml 13 KB

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