pom.xml 13 KB

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