pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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.hzy</groupId>
  6. <artifactId>hzy</artifactId>
  7. <version>4.8.1</version>
  8. <packaging>jar</packaging>
  9. <name>hzy</name>
  10. <url>http://www.ruoyi.vip</url>
  11. <description>华智昀账目</description>
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.5.15</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. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  23. <shiro.version>1.13.0</shiro.version>
  24. <thymeleaf.extras.shiro.version>2.1.0</thymeleaf.extras.shiro.version>
  25. <pagehelper.spring.boot.starter.version>1.4.7</pagehelper.spring.boot.starter.version>
  26. <fastjson.version>1.2.83</fastjson.version>
  27. <druid.version>1.2.27</druid.version>
  28. <commons.io.version>2.19.0</commons.io.version>
  29. <bitwalker.version>1.21</bitwalker.version>
  30. <velocity.version>2.3</velocity.version>
  31. <kaptcha.version>2.3.3</kaptcha.version>
  32. <swagger.version>3.0.0</swagger.version>
  33. <poi.version>4.1.2</poi.version>
  34. <oshi.version>6.8.3</oshi.version>
  35. <lombok.version>1.18.26</lombok.version>
  36. <!-- override dependency version -->
  37. <tomcat.version>9.0.108</tomcat.version>
  38. <logback.version>1.2.13</logback.version>
  39. <spring-framework.version>5.3.39</spring-framework.version>
  40. <oss-client.version>3.17.4</oss-client.version>
  41. <ocrapi.version>3.0.4</ocrapi.version>
  42. </properties>
  43. <dependencies>
  44. <!-- SpringBoot 核心包 -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter</artifactId>
  48. </dependency>
  49. <!-- SpringBoot 测试 -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <!-- SpringBoot 拦截器 -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-aop</artifactId>
  59. </dependency>
  60. <!-- SpringBoot Web容器 -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-web</artifactId>
  64. </dependency>
  65. <!-- SpringBoot集成thymeleaf模板 -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  69. </dependency>
  70. <!-- spring-boot-devtools -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-devtools</artifactId>
  74. <optional>true</optional> <!-- 表示依赖不会传递 -->
  75. </dependency>
  76. <!-- Mysql驱动包 -->
  77. <dependency>
  78. <groupId>com.mysql</groupId>
  79. <artifactId>mysql-connector-j</artifactId>
  80. <version>8.0.33</version>
  81. <scope>runtime</scope>
  82. </dependency>
  83. <!-- pagehelper 分页插件 -->
  84. <dependency>
  85. <groupId>com.github.pagehelper</groupId>
  86. <artifactId>pagehelper-spring-boot-starter</artifactId>
  87. <version>${pagehelper.spring.boot.starter.version}</version>
  88. </dependency>
  89. <!-- 阿里数据库连接池 -->
  90. <dependency>
  91. <groupId>com.alibaba</groupId>
  92. <artifactId>druid-spring-boot-starter</artifactId>
  93. <version>${druid.version}</version>
  94. </dependency>
  95. <!-- 自定义验证注解 -->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-validation</artifactId>
  99. </dependency>
  100. <!-- 常用工具类 -->
  101. <dependency>
  102. <groupId>org.apache.commons</groupId>
  103. <artifactId>commons-lang3</artifactId>
  104. </dependency>
  105. <!-- io常用工具类 -->
  106. <dependency>
  107. <groupId>commons-io</groupId>
  108. <artifactId>commons-io</artifactId>
  109. <version>${commons.io.version}</version>
  110. </dependency>
  111. <!-- Shiro核心框架 -->
  112. <dependency>
  113. <groupId>org.apache.shiro</groupId>
  114. <artifactId>shiro-core</artifactId>
  115. <version>${shiro.version}</version>
  116. </dependency>
  117. <!-- Shiro使用Spring框架 -->
  118. <dependency>
  119. <groupId>org.apache.shiro</groupId>
  120. <artifactId>shiro-spring</artifactId>
  121. <version>${shiro.version}</version>
  122. </dependency>
  123. <!-- Shiro使用EhCache缓存框架 -->
  124. <dependency>
  125. <groupId>org.apache.shiro</groupId>
  126. <artifactId>shiro-ehcache</artifactId>
  127. <version>${shiro.version}</version>
  128. </dependency>
  129. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  130. <dependency>
  131. <groupId>com.github.theborakompanioni</groupId>
  132. <artifactId>thymeleaf-extras-shiro</artifactId>
  133. <version>${thymeleaf.extras.shiro.version}</version>
  134. </dependency>
  135. <!-- 阿里JSON解析器 -->
  136. <dependency>
  137. <groupId>com.alibaba</groupId>
  138. <artifactId>fastjson</artifactId>
  139. <version>${fastjson.version}</version>
  140. </dependency>
  141. <!-- 解析客户端操作系统、浏览器等 -->
  142. <dependency>
  143. <groupId>eu.bitwalker</groupId>
  144. <artifactId>UserAgentUtils</artifactId>
  145. <version>${bitwalker.version}</version>
  146. </dependency>
  147. <!-- Spring框架基本的核心工具 -->
  148. <dependency>
  149. <groupId>org.springframework</groupId>
  150. <artifactId>spring-context-support</artifactId>
  151. </dependency>
  152. <!-- 定时任务 -->
  153. <dependency>
  154. <groupId>org.quartz-scheduler</groupId>
  155. <artifactId>quartz</artifactId>
  156. <exclusions>
  157. <exclusion>
  158. <groupId>com.mchange</groupId>
  159. <artifactId>c3p0</artifactId>
  160. </exclusion>
  161. </exclusions>
  162. </dependency>
  163. <!-- velocity代码生成使用模板 -->
  164. <dependency>
  165. <groupId>org.apache.velocity</groupId>
  166. <artifactId>velocity-engine-core</artifactId>
  167. <version>${velocity.version}</version>
  168. </dependency>
  169. <!-- 验证码 -->
  170. <dependency>
  171. <groupId>pro.fessional</groupId>
  172. <artifactId>kaptcha</artifactId>
  173. <version>${kaptcha.version}</version>
  174. <exclusions>
  175. <exclusion>
  176. <artifactId>servlet-api</artifactId>
  177. <groupId>javax.servlet</groupId>
  178. </exclusion>
  179. </exclusions>
  180. </dependency>
  181. <!-- Swagger3依赖 -->
  182. <dependency>
  183. <groupId>io.springfox</groupId>
  184. <artifactId>springfox-boot-starter</artifactId>
  185. <version>${swagger.version}</version>
  186. <exclusions>
  187. <exclusion>
  188. <groupId>io.swagger</groupId>
  189. <artifactId>swagger-models</artifactId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  194. <dependency>
  195. <groupId>io.swagger</groupId>
  196. <artifactId>swagger-models</artifactId>
  197. <version>1.6.2</version>
  198. </dependency>
  199. <!-- 获取系统信息 -->
  200. <dependency>
  201. <groupId>com.github.oshi</groupId>
  202. <artifactId>oshi-core</artifactId>
  203. <version>${oshi.version}</version>
  204. </dependency>
  205. <!-- excel工具 -->
  206. <dependency>
  207. <groupId>org.apache.poi</groupId>
  208. <artifactId>poi-ooxml</artifactId>
  209. <version>${poi.version}</version>
  210. </dependency>
  211. <!-- lombok -->
  212. <dependency>
  213. <groupId>org.projectlombok</groupId>
  214. <artifactId>lombok</artifactId>
  215. <version>${lombok.version}</version>
  216. <optional>true</optional>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.aliyun</groupId>
  220. <artifactId>alibabacloud-ocr_api20210707</artifactId>
  221. <version>${ocrapi.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.apache.commons</groupId>
  225. <artifactId>commons-jexl</artifactId>
  226. <version>2.1.1</version> <!-- 稳定版,Java8 兼容 -->
  227. </dependency>
  228. </dependencies>
  229. <build>
  230. <finalName>${project.artifactId}</finalName>
  231. <plugins>
  232. <plugin>
  233. <groupId>org.springframework.boot</groupId>
  234. <artifactId>spring-boot-maven-plugin</artifactId>
  235. <configuration>
  236. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  237. </configuration>
  238. </plugin>
  239. <!-- YUI Compressor (CSS/JS压缩)
  240. <plugin>
  241. <groupId>net.alchim31.maven</groupId>
  242. <artifactId>yuicompressor-maven-plugin</artifactId>
  243. <version>1.5.1</version>
  244. <executions>
  245. <execution>
  246. <phase>prepare-package</phase>
  247. <goals>
  248. <goal>compress</goal>
  249. </goals>
  250. </execution>
  251. </executions>
  252. <configuration>
  253. <encoding>UTF-8</encoding>
  254. <jswarn>false</jswarn>
  255. <nosuffix>true</nosuffix>
  256. <linebreakpos>50000</linebreakpos>
  257. <sourceDirectory>src/main/resources/static</sourceDirectory>
  258. <force>true</force>
  259. <includes>
  260. <include>**/*.js</include>
  261. <include>**/*.css</include>
  262. </includes>
  263. <excludes>
  264. <exclude>**/*.min.js</exclude>
  265. <exclude>**/*.min.css</exclude>
  266. <exclude>**/fileinput.js</exclude>
  267. <exclude>**/validate/**</exclude>
  268. <exclude>**/bootstrap-table/**</exclude>
  269. </excludes>
  270. </configuration>
  271. </plugin> -->
  272. </plugins>
  273. </build>
  274. <repositories>
  275. <repository>
  276. <id>public</id>
  277. <name>aliyun nexus</name>
  278. <url>https://maven.aliyun.com/repository/public</url>
  279. <releases>
  280. <enabled>true</enabled>
  281. </releases>
  282. </repository>
  283. </repositories>
  284. <pluginRepositories>
  285. <pluginRepository>
  286. <id>public</id>
  287. <name>aliyun nexus</name>
  288. <url>https://maven.aliyun.com/repository/public</url>
  289. <releases>
  290. <enabled>true</enabled>
  291. </releases>
  292. <snapshots>
  293. <enabled>false</enabled>
  294. </snapshots>
  295. </pluginRepository>
  296. </pluginRepositories>
  297. </project>