pom.xml 12 KB

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