pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.pavis.backend</groupId>
  6. <artifactId>backend</artifactId>
  7. <version>0.0.1</version>
  8. <packaging>jar</packaging>
  9. <name>pavis</name>
  10. <url>http://www.s-privacy.com</url>
  11. <description>派维斯后台接口通用系统框架</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.7.9</version>
  16. <relativePath/>
  17. </parent>
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <java.version>1.8</java.version>
  22. <pagehelper.spring.boot.starter.version>1.4.6</pagehelper.spring.boot.starter.version>
  23. <fastjson.version>2.0.23</fastjson.version>
  24. <druid.version>1.2.16</druid.version>
  25. <commons.io.version>2.11.0</commons.io.version>
  26. <commons.collections.version>3.2.2</commons.collections.version>
  27. <bitwalker.version>1.21</bitwalker.version>
  28. <jwt.version>0.9.1</jwt.version>
  29. <kaptcha.version>2.3.3</kaptcha.version>
  30. <swagger.version>3.0.0</swagger.version>
  31. <poi.version>4.1.2</poi.version>
  32. <oshi.version>6.4.0</oshi.version>
  33. <velocity.version>2.3</velocity.version>
  34. <mysql.version>8.0.29</mysql.version>
  35. </properties>
  36. <dependencies>
  37. <!-- Spring框架 核心工具-->
  38. <dependency>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-context-support</artifactId>
  41. </dependency>
  42. <!-- SpringBoot 核心包 -->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter</artifactId>
  46. </dependency>
  47. <!-- SpringBoot Web容器 -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-web</artifactId>
  51. </dependency>
  52. <!-- SpringBoot 测试 -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <!-- SpringBoot 配置 -->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-configuration-processor</artifactId>
  62. <optional>true</optional>
  63. </dependency>
  64. <!-- SpringBoot 拦截器 -->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-aop</artifactId>
  68. </dependency>
  69. <!-- SpringBoot 自定义验证注解 -->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-validation</artifactId>
  73. </dependency>
  74. <!-- spring security 安全认证 -->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-security</artifactId>
  78. </dependency>
  79. <!-- spring-boot-devtools -->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-devtools</artifactId>
  83. <optional>true</optional> <!-- 表示依赖不会传递 -->
  84. </dependency>
  85. <!-- Mysql驱动包 -->
  86. <dependency>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. <version>${mysql.version}</version>
  90. <scope>runtime</scope>
  91. </dependency>
  92. <!-- pool 对象池 -->
  93. <dependency>
  94. <groupId>org.apache.commons</groupId>
  95. <artifactId>commons-pool2</artifactId>
  96. </dependency>
  97. <!-- 阿里数据库连接池 -->
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>druid-spring-boot-starter</artifactId>
  101. <version>${druid.version}</version>
  102. </dependency>
  103. <!-- redis 缓存操作 -->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-data-redis</artifactId>
  107. </dependency>
  108. <!-- pagehelper 分页插件 -->
  109. <dependency>
  110. <groupId>com.github.pagehelper</groupId>
  111. <artifactId>pagehelper-spring-boot-starter</artifactId>
  112. <version>${pagehelper.spring.boot.starter.version}</version>
  113. </dependency>
  114. <!-- 常用工具类 -->
  115. <dependency>
  116. <groupId>org.apache.commons</groupId>
  117. <artifactId>commons-lang3</artifactId>
  118. </dependency>
  119. <!-- io常用工具类 -->
  120. <dependency>
  121. <groupId>commons-io</groupId>
  122. <artifactId>commons-io</artifactId>
  123. <version>${commons.io.version}</version>
  124. </dependency>
  125. <!-- 解析客户端操作系统、浏览器等 -->
  126. <dependency>
  127. <groupId>eu.bitwalker</groupId>
  128. <artifactId>UserAgentUtils</artifactId>
  129. <version>${bitwalker.version}</version>
  130. </dependency>
  131. <!-- 阿里JSON解析器 -->
  132. <dependency>
  133. <groupId>com.alibaba.fastjson2</groupId>
  134. <artifactId>fastjson2</artifactId>
  135. <version>${fastjson.version}</version>
  136. </dependency>
  137. <!-- Token生成与解析-->
  138. <dependency>
  139. <groupId>io.jsonwebtoken</groupId>
  140. <artifactId>jjwt</artifactId>
  141. <version>${jwt.version}</version>
  142. </dependency>
  143. <!-- Jaxb -->
  144. <dependency>
  145. <groupId>javax.xml.bind</groupId>
  146. <artifactId>jaxb-api</artifactId>
  147. </dependency>
  148. <!-- Swagger3依赖 -->
  149. <dependency>
  150. <groupId>io.springfox</groupId>
  151. <artifactId>springfox-boot-starter</artifactId>
  152. <version>${swagger.version}</version>
  153. <exclusions>
  154. <exclusion>
  155. <groupId>io.swagger</groupId>
  156. <artifactId>swagger-models</artifactId>
  157. </exclusion>
  158. </exclusions>
  159. </dependency>
  160. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  161. <dependency>
  162. <groupId>io.swagger</groupId>
  163. <artifactId>swagger-models</artifactId>
  164. <version>1.6.2</version>
  165. </dependency>
  166. <!-- 获取系统信息 -->
  167. <dependency>
  168. <groupId>com.github.oshi</groupId>
  169. <artifactId>oshi-core</artifactId>
  170. <version>${oshi.version}</version>
  171. </dependency>
  172. <!-- excel工具 -->
  173. <dependency>
  174. <groupId>org.apache.poi</groupId>
  175. <artifactId>poi-ooxml</artifactId>
  176. <version>${poi.version}</version>
  177. </dependency>
  178. <!-- velocity代码生成使用模板 -->
  179. <dependency>
  180. <groupId>org.apache.velocity</groupId>
  181. <artifactId>velocity-engine-core</artifactId>
  182. <version>${velocity.version}</version>
  183. </dependency>
  184. <!-- collections工具类 -->
  185. <dependency>
  186. <groupId>commons-collections</groupId>
  187. <artifactId>commons-collections</artifactId>
  188. <version>${commons.collections.version}</version>
  189. </dependency>
  190. <!-- 定时任务 -->
  191. <dependency>
  192. <groupId>org.quartz-scheduler</groupId>
  193. <artifactId>quartz</artifactId>
  194. <exclusions>
  195. <exclusion>
  196. <groupId>com.mchange</groupId>
  197. <artifactId>c3p0</artifactId>
  198. </exclusion>
  199. </exclusions>
  200. </dependency>
  201. <!-- 验证码 -->
  202. <dependency>
  203. <groupId>pro.fessional</groupId>
  204. <artifactId>kaptcha</artifactId>
  205. <version>${kaptcha.version}</version>
  206. <exclusions>
  207. <exclusion>
  208. <artifactId>javax.servlet-api</artifactId>
  209. <groupId>javax.servlet</groupId>
  210. </exclusion>
  211. </exclusions>
  212. </dependency>
  213. <!-- 实体类注解工具 -->
  214. <dependency>
  215. <groupId>org.projectlombok</groupId>
  216. <artifactId>lombok</artifactId>
  217. <optional>true</optional>
  218. </dependency>
  219. </dependencies>
  220. <build>
  221. <finalName>${project.artifactId}</finalName>
  222. <plugins>
  223. <plugin>
  224. <groupId>org.springframework.boot</groupId>
  225. <artifactId>spring-boot-maven-plugin</artifactId>
  226. <configuration>
  227. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  228. <excludes>
  229. <exclude>
  230. <groupId>org.projectlombok</groupId>
  231. <artifactId>lombok</artifactId>
  232. </exclude>
  233. </excludes>
  234. </configuration>
  235. </plugin>
  236. </plugins>
  237. </build>
  238. <repositories>
  239. <repository>
  240. <id>public</id>
  241. <name>aliyun nexus</name>
  242. <url>https://maven.aliyun.com/repository/public</url>
  243. <releases>
  244. <enabled>true</enabled>
  245. </releases>
  246. </repository>
  247. </repositories>
  248. <pluginRepositories>
  249. <pluginRepository>
  250. <id>public</id>
  251. <name>aliyun nexus</name>
  252. <url>https://maven.aliyun.com/repository/public</url>
  253. <releases>
  254. <enabled>true</enabled>
  255. </releases>
  256. <snapshots>
  257. <enabled>false</enabled>
  258. </snapshots>
  259. </pluginRepository>
  260. </pluginRepositories>
  261. </project>