pom.xml 15 KB

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