pom.xml 12 KB

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