pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  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. <!-- mysql驱动8.0
  110. <dependency>
  111. <groupId>mysql</groupId>
  112. <artifactId>mysql-connector-java</artifactId>
  113. <version>8.0.11</version>
  114. </dependency>
  115. -->
  116. <!--druid 数据源监控-->
  117. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  118. <dependency>
  119. <groupId>com.alibaba</groupId>
  120. <artifactId>druid-spring-boot-starter</artifactId>
  121. <version>1.1.10</version>
  122. </dependency>
  123. <!-- shiro权限 -->
  124. <dependency>
  125. <groupId>org.apache.shiro</groupId>
  126. <artifactId>shiro-spring</artifactId>
  127. <version>1.4.0</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-starter-aop</artifactId>
  132. </dependency>
  133. <!-- shiro权限支持thymeleaf -->
  134. <dependency>
  135. <groupId>com.github.theborakompanioni</groupId>
  136. <artifactId>thymeleaf-extras-shiro</artifactId>
  137. <version>2.0.0</version>
  138. </dependency>
  139. <!-- thymeleaf模版 -->
  140. <dependency>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  143. </dependency>
  144. <!--常用工具类 -->
  145. <dependency>
  146. <groupId>org.apache.commons</groupId>
  147. <artifactId>commons-lang3</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-lang</groupId>
  151. <artifactId>commons-lang</artifactId>
  152. <version>2.4</version>
  153. </dependency>
  154. <!--io常用工具类 -->
  155. <dependency>
  156. <groupId>commons-io</groupId>
  157. <artifactId>commons-io</artifactId>
  158. <version>${commons.io.version}</version>
  159. </dependency>
  160. <!--文件上传工具类 -->
  161. <dependency>
  162. <groupId>commons-fileupload</groupId>
  163. <artifactId>commons-fileupload</artifactId>
  164. <version>${commons.fileupload.version}</version>
  165. </dependency>
  166. <!-- 热部署 -->
  167. <dependency>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-devtools</artifactId>
  170. <optional>true</optional>
  171. </dependency>
  172. <!-- Hutool是一个Java工具包 http://hutool.cn/ -->
  173. <dependency>
  174. <groupId>cn.hutool</groupId>
  175. <artifactId>hutool-all</artifactId>
  176. <version>4.1.12</version>
  177. </dependency>
  178. <!-- google验证码 -->
  179. <dependency>
  180. <groupId>com.github.penggle</groupId>
  181. <artifactId>kaptcha</artifactId>
  182. <version>2.3.2</version>
  183. </dependency>
  184. <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
  185. <dependency>
  186. <groupId>org.apache.velocity</groupId>
  187. <artifactId>velocity</artifactId>
  188. <version>1.7</version>
  189. </dependency>
  190. <!-- websocket -->
  191. <dependency>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter-websocket</artifactId>
  194. </dependency>
  195. <!-- 配置文件读取 -->
  196. <dependency>
  197. <groupId>commons-configuration</groupId>
  198. <artifactId>commons-configuration</artifactId>
  199. <version>1.10</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-configuration-processor</artifactId>
  204. <optional>true</optional>
  205. </dependency>
  206. <!-- mail -->
  207. <dependency>
  208. <groupId>javax.mail</groupId>
  209. <artifactId>mail</artifactId>
  210. <version>1.4.7</version>
  211. </dependency>
  212. <!--百度UEditor依赖的jar包 -->
  213. <!-- <dependency>
  214. <groupId>org.json</groupId>
  215. <artifactId>json</artifactId>
  216. <version>20180813</version>
  217. </dependency>-->
  218. <dependency>
  219. <groupId>commons-codec</groupId>
  220. <artifactId>commons-codec</artifactId>
  221. <version>1.9</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>ueditor</groupId>
  225. <artifactId>1.1.2</artifactId>
  226. <version>1.8</version>
  227. <scope>system</scope>
  228. <systemPath>${project.basedir}/src/main/resources/lib/ueditor-1.1.2.jar</systemPath>
  229. </dependency>
  230. <!--quartz依赖-->
  231. <dependency>
  232. <groupId>org.quartz-scheduler</groupId>
  233. <artifactId>quartz</artifactId>
  234. <version>2.2.1</version>
  235. </dependency>
  236. <!-- 七牛云 -->
  237. <dependency>
  238. <groupId>com.qiniu</groupId>
  239. <artifactId>qiniu-java-sdk</artifactId>
  240. <version>[7.2.0, 7.2.99]</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.springframework.boot</groupId>
  244. <artifactId>spring-boot-configuration-processor</artifactId>
  245. <optional>true</optional>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.springframework.boot</groupId>
  249. <artifactId>spring-boot-starter-data-redis</artifactId>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.mongodb</groupId>
  253. <artifactId>mongo-java-driver</artifactId>
  254. <version>3.10.2</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>redis.clients</groupId>
  258. <artifactId>jedis</artifactId>
  259. <version>2.9.0</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.baomidou</groupId>
  263. <artifactId>mybatis-plus-core</artifactId>
  264. <version>3.3.2</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.baomidou</groupId>
  268. <artifactId>mybatis-plus-boot-starter</artifactId>
  269. <version>3.3.2</version>
  270. </dependency>
  271. <!--代码生成器-->
  272. <dependency>
  273. <groupId>com.baomidou</groupId>
  274. <artifactId>mybatis-plus-generator</artifactId>
  275. <version>3.3.2</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>com.baomidou</groupId>
  279. <artifactId>mybatis-plus-extension</artifactId>
  280. <version>3.3.2</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.apache.tomcat</groupId>
  284. <artifactId>tomcat-juli</artifactId>
  285. <version>${tomcat.version}</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.apache.tomcat.embed</groupId>
  289. <artifactId>tomcat-embed-core</artifactId>
  290. <version>${tomcat.version}</version>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.apache.tomcat.embed</groupId>
  294. <artifactId>tomcat-embed-el</artifactId>
  295. <version>${tomcat.version}</version>
  296. </dependency>
  297. <dependency>
  298. <groupId>org.apache.tomcat.embed</groupId>
  299. <artifactId>tomcat-embed-websocket</artifactId>
  300. <version>${tomcat.version}</version>
  301. </dependency>
  302. <!--视频截取第一帧-->
  303. <dependency>
  304. <groupId>org.bytedeco</groupId>
  305. <artifactId>javacv</artifactId>
  306. <version>1.4.3</version>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.bytedeco.javacpp-presets</groupId>
  310. <artifactId>ffmpeg-platform</artifactId>
  311. <version>4.0.2-1.4.3</version>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.springframework</groupId>
  315. <artifactId>spring-test</artifactId>
  316. <version>RELEASE</version>
  317. </dependency>
  318. </dependencies>
  319. <!--<build>
  320. &lt;!&ndash; 打包不带版本号 &ndash;&gt;
  321. &lt;!&ndash; <finalName>springboot_v2</finalName> &ndash;&gt;
  322. <plugins>
  323. &lt;!&ndash; JUnit 配置 &ndash;&gt;
  324. <plugin>
  325. <groupId>org.apache.maven.plugins</groupId>
  326. <artifactId>maven-surefire-plugin</artifactId>
  327. &lt;!&ndash;忽略测试启动类 &ndash;&gt;
  328. <configuration>
  329. <skip>true</skip>
  330. </configuration>
  331. </plugin>
  332. &lt;!&ndash; generator 配置&ndash;&gt;
  333. <plugin>
  334. <groupId>org.mybatis.generator</groupId>
  335. <artifactId>mybatis-generator-maven-plugin</artifactId>
  336. <version>1.3.7</version>
  337. <configuration>
  338. &lt;!&ndash;允许移动生成的文件 &ndash;&gt;
  339. <verbose>false</verbose>
  340. &lt;!&ndash;允许覆盖生成的文件 &ndash;&gt;
  341. <overwrite>false</overwrite>
  342. &lt;!&ndash;配置文件的路径 &ndash;&gt;
  343. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  344. </configuration>
  345. <dependencies>
  346. <dependency>
  347. <groupId>mysql</groupId>
  348. <artifactId>mysql-connector-java</artifactId>
  349. <version>${mysql.version}</version>
  350. </dependency>
  351. </dependencies>
  352. </plugin>
  353. &lt;!&ndash; jar运行配置 &ndash;&gt;
  354. <plugin>
  355. <groupId>org.springframework.boot</groupId>
  356. <artifactId>spring-boot-maven-plugin</artifactId>
  357. </plugin>
  358. </plugins>
  359. </build>-->
  360. <build>
  361. <plugins>
  362. <plugin>
  363. <groupId>org.apache.maven.plugins</groupId>
  364. <artifactId>maven-surefire-plugin</artifactId>
  365. <!--忽略测试启动类 -->
  366. <configuration>
  367. <skip>true</skip>
  368. </configuration>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.apache.maven.plugins</groupId>
  372. <artifactId>maven-jar-plugin</artifactId>
  373. <version>3.1.0</version>
  374. <configuration>
  375. <archive>
  376. <manifest>
  377. <mainClass>com.gyee.SpringbootStart</mainClass>
  378. </manifest>
  379. </archive>
  380. </configuration>
  381. </plugin>
  382. <!-- generator 配置-->
  383. <plugin>
  384. <groupId>org.mybatis.generator</groupId>
  385. <artifactId>mybatis-generator-maven-plugin</artifactId>
  386. <version>1.3.7</version>
  387. <configuration>
  388. <!--允许移动生成的文件 -->
  389. <verbose>false</verbose>
  390. <!--允许覆盖生成的文件 -->
  391. <overwrite>false</overwrite>
  392. <!--配置文件的路径 -->
  393. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  394. </configuration>
  395. <dependencies>
  396. <!-- <dependency>-->
  397. <!-- <groupId>mysql</groupId>-->
  398. <!-- <artifactId>mysql-connector-java</artifactId>-->
  399. <!-- <version>${mysql.version}</version>-->
  400. <!-- </dependency>-->
  401. <dependency>
  402. <groupId>com.microsoft.sqlserver</groupId>
  403. <artifactId>sqljdbc4</artifactId>
  404. <version>4.0</version>
  405. </dependency>
  406. <!-- <dependency>-->
  407. <!-- <groupId>com.oracle</groupId>-->
  408. <!-- <artifactId>ojdbc6</artifactId>-->
  409. <!-- <version>11.2.0.3</version>-->
  410. <!-- </dependency>-->
  411. </dependencies>
  412. </plugin>
  413. <plugin>
  414. <groupId>org.springframework.boot</groupId>
  415. <artifactId>spring-boot-maven-plugin</artifactId>
  416. <configuration>
  417. <fork>true</fork>
  418. </configuration>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.springframework.boot</groupId>
  422. <artifactId>spring-boot-maven-plugin</artifactId>
  423. <configuration>
  424. <fork>true</fork>
  425. </configuration>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-war-plugin</artifactId>
  430. <version>2.3</version>
  431. <configuration>
  432. <webResources>
  433. <resource>
  434. <directory>${project.basedir}/src/main/resources/lib</directory>
  435. <targetPath>BOOT-INF/lib/</targetPath>
  436. <includes>
  437. <include>**/*.jar</include>
  438. </includes>
  439. </resource>
  440. </webResources>
  441. </configuration>
  442. </plugin>
  443. </plugins>
  444. <!-- <resources>
  445. <resource>
  446. <directory>src/main/resources/lib</directory>
  447. <targetPath>BOOT-INF/lib/</targetPath>
  448. <includes>
  449. <include>**/*.jar</include>
  450. </includes>
  451. </resource>
  452. <resource>
  453. <directory>src/main/resources</directory>
  454. <targetPath>BOOT-INF/classes/</targetPath>
  455. </resource>
  456. </resources>-->
  457. </build>
  458. <!-- 阿里云maven仓库 -->
  459. <repositories>
  460. <repository>
  461. <id>public</id>
  462. <name>aliyun nexus</name>
  463. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  464. <releases>
  465. <enabled>true</enabled>
  466. </releases>
  467. </repository>
  468. </repositories>
  469. <pluginRepositories>
  470. <pluginRepository>
  471. <id>public</id>
  472. <name>aliyun nexus</name>
  473. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  474. <releases>
  475. <enabled>true</enabled>
  476. </releases>
  477. <snapshots>
  478. <enabled>false</enabled>
  479. </snapshots>
  480. </pluginRepository>
  481. </pluginRepositories>
  482. </project>