pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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. </dependencies>
  303. <!--<build>
  304. &lt;!&ndash; 打包不带版本号 &ndash;&gt;
  305. &lt;!&ndash; <finalName>springboot_v2</finalName> &ndash;&gt;
  306. <plugins>
  307. &lt;!&ndash; JUnit 配置 &ndash;&gt;
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-surefire-plugin</artifactId>
  311. &lt;!&ndash;忽略测试启动类 &ndash;&gt;
  312. <configuration>
  313. <skip>true</skip>
  314. </configuration>
  315. </plugin>
  316. &lt;!&ndash; generator 配置&ndash;&gt;
  317. <plugin>
  318. <groupId>org.mybatis.generator</groupId>
  319. <artifactId>mybatis-generator-maven-plugin</artifactId>
  320. <version>1.3.7</version>
  321. <configuration>
  322. &lt;!&ndash;允许移动生成的文件 &ndash;&gt;
  323. <verbose>false</verbose>
  324. &lt;!&ndash;允许覆盖生成的文件 &ndash;&gt;
  325. <overwrite>false</overwrite>
  326. &lt;!&ndash;配置文件的路径 &ndash;&gt;
  327. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  328. </configuration>
  329. <dependencies>
  330. <dependency>
  331. <groupId>mysql</groupId>
  332. <artifactId>mysql-connector-java</artifactId>
  333. <version>${mysql.version}</version>
  334. </dependency>
  335. </dependencies>
  336. </plugin>
  337. &lt;!&ndash; jar运行配置 &ndash;&gt;
  338. <plugin>
  339. <groupId>org.springframework.boot</groupId>
  340. <artifactId>spring-boot-maven-plugin</artifactId>
  341. </plugin>
  342. </plugins>
  343. </build>-->
  344. <build>
  345. <plugins>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-surefire-plugin</artifactId>
  349. <!--忽略测试启动类 -->
  350. <configuration>
  351. <skip>true</skip>
  352. </configuration>
  353. </plugin>
  354. <!-- generator 配置-->
  355. <plugin>
  356. <groupId>org.mybatis.generator</groupId>
  357. <artifactId>mybatis-generator-maven-plugin</artifactId>
  358. <version>1.3.7</version>
  359. <configuration>
  360. <!--允许移动生成的文件 -->
  361. <verbose>false</verbose>
  362. <!--允许覆盖生成的文件 -->
  363. <overwrite>false</overwrite>
  364. <!--配置文件的路径 -->
  365. <configurationFile>src/main/resources/mybatis-generator.xml</configurationFile>
  366. </configuration>
  367. <dependencies>
  368. <!-- <dependency>-->
  369. <!-- <groupId>mysql</groupId>-->
  370. <!-- <artifactId>mysql-connector-java</artifactId>-->
  371. <!-- <version>${mysql.version}</version>-->
  372. <!-- </dependency>-->
  373. <dependency>
  374. <groupId>com.microsoft.sqlserver</groupId>
  375. <artifactId>sqljdbc4</artifactId>
  376. <version>4.0</version>
  377. </dependency>
  378. <!-- <dependency>-->
  379. <!-- <groupId>com.oracle</groupId>-->
  380. <!-- <artifactId>ojdbc6</artifactId>-->
  381. <!-- <version>11.2.0.3</version>-->
  382. <!-- </dependency>-->
  383. </dependencies>
  384. </plugin>
  385. <plugin>
  386. <groupId>org.springframework.boot</groupId>
  387. <artifactId>spring-boot-maven-plugin</artifactId>
  388. <configuration>
  389. <fork>true</fork>
  390. </configuration>
  391. </plugin>
  392. <plugin>
  393. <groupId>org.springframework.boot</groupId>
  394. <artifactId>spring-boot-maven-plugin</artifactId>
  395. <configuration>
  396. <fork>true</fork>
  397. </configuration>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-war-plugin</artifactId>
  402. <version>2.3</version>
  403. <configuration>
  404. <webResources>
  405. <resource>
  406. <directory>${project.basedir}/src/main/resources/lib</directory>
  407. <targetPath>BOOT-INF/lib/</targetPath>
  408. <includes>
  409. <include>**/*.jar</include>
  410. </includes>
  411. </resource>
  412. </webResources>
  413. </configuration>
  414. </plugin>
  415. </plugins>
  416. <!-- <resources>
  417. <resource>
  418. <directory>src/main/resources/lib</directory>
  419. <targetPath>BOOT-INF/lib/</targetPath>
  420. <includes>
  421. <include>**/*.jar</include>
  422. </includes>
  423. </resource>
  424. <resource>
  425. <directory>src/main/resources</directory>
  426. <targetPath>BOOT-INF/classes/</targetPath>
  427. </resource>
  428. </resources>-->
  429. </build>
  430. <!-- 阿里云maven仓库 -->
  431. <repositories>
  432. <repository>
  433. <id>public</id>
  434. <name>aliyun nexus</name>
  435. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  436. <releases>
  437. <enabled>true</enabled>
  438. </releases>
  439. </repository>
  440. </repositories>
  441. <pluginRepositories>
  442. <pluginRepository>
  443. <id>public</id>
  444. <name>aliyun nexus</name>
  445. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  446. <releases>
  447. <enabled>true</enabled>
  448. </releases>
  449. <snapshots>
  450. <enabled>false</enabled>
  451. </snapshots>
  452. </pluginRepository>
  453. </pluginRepositories>
  454. </project>