pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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>mysql</groupId>
  79. <artifactId>mysql-connector-java</artifactId>
  80. </dependency>
  81. <!-- pagehelper 分页插件 -->
  82. <dependency>
  83. <groupId>com.github.pagehelper</groupId>
  84. <artifactId>pagehelper-spring-boot-starter</artifactId>
  85. <version>${pagehelper.spring.boot.starter.version}</version>
  86. </dependency>
  87. <!-- 阿里数据库连接池 -->
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>druid-spring-boot-starter</artifactId>
  91. <version>${druid.version}</version>
  92. </dependency>
  93. <!-- 自定义验证注解 -->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-validation</artifactId>
  97. </dependency>
  98. <!-- 常用工具类 -->
  99. <dependency>
  100. <groupId>org.apache.commons</groupId>
  101. <artifactId>commons-lang3</artifactId>
  102. </dependency>
  103. <!-- io常用工具类 -->
  104. <dependency>
  105. <groupId>commons-io</groupId>
  106. <artifactId>commons-io</artifactId>
  107. <version>${commons.io.version}</version>
  108. </dependency>
  109. <!-- Shiro核心框架 -->
  110. <dependency>
  111. <groupId>org.apache.shiro</groupId>
  112. <artifactId>shiro-core</artifactId>
  113. <version>${shiro.version}</version>
  114. </dependency>
  115. <!-- Shiro使用Spring框架 -->
  116. <dependency>
  117. <groupId>org.apache.shiro</groupId>
  118. <artifactId>shiro-spring</artifactId>
  119. <version>${shiro.version}</version>
  120. </dependency>
  121. <!-- Shiro使用EhCache缓存框架 -->
  122. <dependency>
  123. <groupId>org.apache.shiro</groupId>
  124. <artifactId>shiro-ehcache</artifactId>
  125. <version>${shiro.version}</version>
  126. </dependency>
  127. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  128. <dependency>
  129. <groupId>com.github.theborakompanioni</groupId>
  130. <artifactId>thymeleaf-extras-shiro</artifactId>
  131. <version>${thymeleaf.extras.shiro.version}</version>
  132. </dependency>
  133. <!-- 阿里JSON解析器 -->
  134. <dependency>
  135. <groupId>com.alibaba</groupId>
  136. <artifactId>fastjson</artifactId>
  137. <version>${fastjson.version}</version>
  138. </dependency>
  139. <!-- 解析客户端操作系统、浏览器等 -->
  140. <dependency>
  141. <groupId>eu.bitwalker</groupId>
  142. <artifactId>UserAgentUtils</artifactId>
  143. <version>${bitwalker.version}</version>
  144. </dependency>
  145. <!-- Spring框架基本的核心工具 -->
  146. <dependency>
  147. <groupId>org.springframework</groupId>
  148. <artifactId>spring-context-support</artifactId>
  149. </dependency>
  150. <!-- 定时任务 -->
  151. <dependency>
  152. <groupId>org.quartz-scheduler</groupId>
  153. <artifactId>quartz</artifactId>
  154. <exclusions>
  155. <exclusion>
  156. <groupId>com.mchange</groupId>
  157. <artifactId>c3p0</artifactId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <!-- velocity代码生成使用模板 -->
  162. <dependency>
  163. <groupId>org.apache.velocity</groupId>
  164. <artifactId>velocity-engine-core</artifactId>
  165. <version>${velocity.version}</version>
  166. </dependency>
  167. <!-- 验证码 -->
  168. <dependency>
  169. <groupId>pro.fessional</groupId>
  170. <artifactId>kaptcha</artifactId>
  171. <version>${kaptcha.version}</version>
  172. <exclusions>
  173. <exclusion>
  174. <artifactId>servlet-api</artifactId>
  175. <groupId>javax.servlet</groupId>
  176. </exclusion>
  177. </exclusions>
  178. </dependency>
  179. <!-- Swagger3依赖 -->
  180. <dependency>
  181. <groupId>io.springfox</groupId>
  182. <artifactId>springfox-boot-starter</artifactId>
  183. <version>${swagger.version}</version>
  184. <exclusions>
  185. <exclusion>
  186. <groupId>io.swagger</groupId>
  187. <artifactId>swagger-models</artifactId>
  188. </exclusion>
  189. </exclusions>
  190. </dependency>
  191. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  192. <dependency>
  193. <groupId>io.swagger</groupId>
  194. <artifactId>swagger-models</artifactId>
  195. <version>1.6.2</version>
  196. </dependency>
  197. <!-- 获取系统信息 -->
  198. <dependency>
  199. <groupId>com.github.oshi</groupId>
  200. <artifactId>oshi-core</artifactId>
  201. <version>${oshi.version}</version>
  202. </dependency>
  203. <!-- excel工具 -->
  204. <dependency>
  205. <groupId>org.apache.poi</groupId>
  206. <artifactId>poi-ooxml</artifactId>
  207. <version>${poi.version}</version>
  208. </dependency>
  209. <!-- lombok -->
  210. <dependency>
  211. <groupId>org.projectlombok</groupId>
  212. <artifactId>lombok</artifactId>
  213. <version>${lombok.version}</version>
  214. <optional>true</optional>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.aliyun</groupId>
  218. <artifactId>alibabacloud-ocr_api20210707</artifactId>
  219. <version>${ocrapi.version}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.commons</groupId>
  223. <artifactId>commons-jexl</artifactId>
  224. <version>2.1.1</version> <!-- 稳定版,Java8 兼容 -->
  225. </dependency>
  226. </dependencies>
  227. <build>
  228. <finalName>${project.artifactId}</finalName>
  229. <plugins>
  230. <plugin>
  231. <groupId>org.springframework.boot</groupId>
  232. <artifactId>spring-boot-maven-plugin</artifactId>
  233. <configuration>
  234. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  235. </configuration>
  236. </plugin>
  237. <!-- YUI Compressor (CSS/JS压缩)
  238. <plugin>
  239. <groupId>net.alchim31.maven</groupId>
  240. <artifactId>yuicompressor-maven-plugin</artifactId>
  241. <version>1.5.1</version>
  242. <executions>
  243. <execution>
  244. <phase>prepare-package</phase>
  245. <goals>
  246. <goal>compress</goal>
  247. </goals>
  248. </execution>
  249. </executions>
  250. <configuration>
  251. <encoding>UTF-8</encoding>
  252. <jswarn>false</jswarn>
  253. <nosuffix>true</nosuffix>
  254. <linebreakpos>50000</linebreakpos>
  255. <sourceDirectory>src/main/resources/static</sourceDirectory>
  256. <force>true</force>
  257. <includes>
  258. <include>**/*.js</include>
  259. <include>**/*.css</include>
  260. </includes>
  261. <excludes>
  262. <exclude>**/*.min.js</exclude>
  263. <exclude>**/*.min.css</exclude>
  264. <exclude>**/fileinput.js</exclude>
  265. <exclude>**/validate/**</exclude>
  266. <exclude>**/bootstrap-table/**</exclude>
  267. </excludes>
  268. </configuration>
  269. </plugin> -->
  270. </plugins>
  271. </build>
  272. <repositories>
  273. <repository>
  274. <id>public</id>
  275. <name>aliyun nexus</name>
  276. <url>https://maven.aliyun.com/repository/public</url>
  277. <releases>
  278. <enabled>true</enabled>
  279. </releases>
  280. </repository>
  281. </repositories>
  282. <pluginRepositories>
  283. <pluginRepository>
  284. <id>public</id>
  285. <name>aliyun nexus</name>
  286. <url>https://maven.aliyun.com/repository/public</url>
  287. <releases>
  288. <enabled>true</enabled>
  289. </releases>
  290. <snapshots>
  291. <enabled>false</enabled>
  292. </snapshots>
  293. </pluginRepository>
  294. </pluginRepositories>
  295. </project>