pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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.youxianxin</groupId>
  6. <artifactId>canteen</artifactId>
  7. <version>4.6.2</version>
  8. <packaging>jar</packaging>
  9. <name>canteen</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.2.13.RELEASE</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.7.1</shiro.version>
  24. <thymeleaf.extras.shiro.version>2.0.0</thymeleaf.extras.shiro.version>
  25. <mybatis.spring.boot.starter.version>2.1.4</mybatis.spring.boot.starter.version>
  26. <pagehelper.spring.boot.starter.version>1.3.1</pagehelper.spring.boot.starter.version>
  27. <fastjson.version>1.2.76</fastjson.version>
  28. <druid.version>1.2.6</druid.version>
  29. <commons.io.version>2.11.0</commons.io.version>
  30. <commons.fileupload.version>1.4</commons.fileupload.version>
  31. <bitwalker.version>1.21</bitwalker.version>
  32. <velocity.version>1.7</velocity.version>
  33. <kaptcha.version>2.3.2</kaptcha.version>
  34. <swagger.version>3.0.0</swagger.version>
  35. <poi.version>4.1.2</poi.version>
  36. <oshi.version>5.8.0</oshi.version>
  37. <jna.version>5.8.0</jna.version>
  38. <alipay.sdk.ava.version>4.16.50.ALL</alipay.sdk.ava.version>
  39. <zxing.version>3.4.0</zxing.version>
  40. <lombok.version>1.18.12</lombok.version>
  41. </properties>
  42. <dependencies>
  43. <!-- SpringBoot 核心包 -->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter</artifactId>
  47. </dependency>
  48. <!-- SpringBoot 测试 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-test</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <!-- SpringBoot 拦截器 -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-aop</artifactId>
  58. </dependency>
  59. <!-- SpringBoot Web容器 -->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-web</artifactId>
  63. </dependency>
  64. <!-- SpringBoot集成thymeleaf模板 -->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  68. </dependency>
  69. <!-- spring-boot-devtools -->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-devtools</artifactId>
  73. <optional>true</optional> <!-- 表示依赖不会传递 -->
  74. </dependency>
  75. <!-- Mysql驱动包 -->
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. </dependency>
  80. <!-- SpringBoot集成mybatis框架 -->
  81. <dependency>
  82. <groupId>org.mybatis.spring.boot</groupId>
  83. <artifactId>mybatis-spring-boot-starter</artifactId>
  84. <version>${mybatis.spring.boot.starter.version}</version>
  85. </dependency>
  86. <!-- pagehelper 分页插件 -->
  87. <dependency>
  88. <groupId>com.github.pagehelper</groupId>
  89. <artifactId>pagehelper-spring-boot-starter</artifactId>
  90. <version>${pagehelper.spring.boot.starter.version}</version>
  91. </dependency>
  92. <!-- 阿里数据库连接池 -->
  93. <dependency>
  94. <groupId>com.alibaba</groupId>
  95. <artifactId>druid-spring-boot-starter</artifactId>
  96. <version>${druid.version}</version>
  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. <!-- 文件上传工具类 -->
  110. <dependency>
  111. <groupId>commons-fileupload</groupId>
  112. <artifactId>commons-fileupload</artifactId>
  113. <version>${commons.fileupload.version}</version>
  114. </dependency>
  115. <!-- Shiro核心框架 -->
  116. <dependency>
  117. <groupId>org.apache.shiro</groupId>
  118. <artifactId>shiro-core</artifactId>
  119. <version>${shiro.version}</version>
  120. </dependency>
  121. <!-- Shiro使用Spring框架 -->
  122. <dependency>
  123. <groupId>org.apache.shiro</groupId>
  124. <artifactId>shiro-spring</artifactId>
  125. <version>${shiro.version}</version>
  126. </dependency>
  127. <!-- Shiro使用EhCache缓存框架 -->
  128. <dependency>
  129. <groupId>org.apache.shiro</groupId>
  130. <artifactId>shiro-ehcache</artifactId>
  131. <version>${shiro.version}</version>
  132. </dependency>
  133. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  134. <dependency>
  135. <groupId>com.github.theborakompanioni</groupId>
  136. <artifactId>thymeleaf-extras-shiro</artifactId>
  137. <version>${thymeleaf.extras.shiro.version}</version>
  138. </dependency>
  139. <!-- 阿里JSON解析器 -->
  140. <dependency>
  141. <groupId>com.alibaba</groupId>
  142. <artifactId>fastjson</artifactId>
  143. <version>${fastjson.version}</version>
  144. </dependency>
  145. <!-- 解析客户端操作系统、浏览器等 -->
  146. <dependency>
  147. <groupId>eu.bitwalker</groupId>
  148. <artifactId>UserAgentUtils</artifactId>
  149. <version>${bitwalker.version}</version>
  150. </dependency>
  151. <!-- Spring框架基本的核心工具 -->
  152. <dependency>
  153. <groupId>org.springframework</groupId>
  154. <artifactId>spring-context-support</artifactId>
  155. </dependency>
  156. <!-- 定时任务 -->
  157. <dependency>
  158. <groupId>org.quartz-scheduler</groupId>
  159. <artifactId>quartz</artifactId>
  160. <exclusions>
  161. <exclusion>
  162. <groupId>com.mchange</groupId>
  163. <artifactId>c3p0</artifactId>
  164. </exclusion>
  165. </exclusions>
  166. </dependency>
  167. <!-- velocity代码生成使用模板 -->
  168. <dependency>
  169. <groupId>org.apache.velocity</groupId>
  170. <artifactId>velocity</artifactId>
  171. <version>${velocity.version}</version>
  172. <exclusions>
  173. <exclusion>
  174. <groupId>commons-collections</groupId>
  175. <artifactId>commons-collections</artifactId>
  176. </exclusion>
  177. </exclusions>
  178. </dependency>
  179. <!-- 验证码 -->
  180. <dependency>
  181. <groupId>com.github.penggle</groupId>
  182. <artifactId>kaptcha</artifactId>
  183. <version>${kaptcha.version}</version>
  184. <exclusions>
  185. <exclusion>
  186. <artifactId>javax.servlet-api</artifactId>
  187. <groupId>javax.servlet</groupId>
  188. </exclusion>
  189. </exclusions>
  190. </dependency>
  191. <!-- Swagger3依赖 -->
  192. <dependency>
  193. <groupId>io.springfox</groupId>
  194. <artifactId>springfox-boot-starter</artifactId>
  195. <version>${swagger.version}</version>
  196. <exclusions>
  197. <exclusion>
  198. <groupId>io.swagger</groupId>
  199. <artifactId>swagger-models</artifactId>
  200. </exclusion>
  201. </exclusions>
  202. </dependency>
  203. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  204. <dependency>
  205. <groupId>io.swagger</groupId>
  206. <artifactId>swagger-models</artifactId>
  207. <version>1.6.2</version>
  208. </dependency>
  209. <!-- 获取系统信息 -->
  210. <dependency>
  211. <groupId>com.github.oshi</groupId>
  212. <artifactId>oshi-core</artifactId>
  213. <version>${oshi.version}</version>
  214. </dependency>
  215. <!-- excel工具 -->
  216. <dependency>
  217. <groupId>org.apache.poi</groupId>
  218. <artifactId>poi-ooxml</artifactId>
  219. <version>${poi.version}</version>
  220. </dependency>
  221. <!--redis:缓存-->
  222. <dependency>
  223. <groupId>org.springframework.boot</groupId>
  224. <artifactId>spring-boot-starter-data-redis</artifactId>
  225. </dependency>
  226. <!--钉钉工具包-->
  227. <dependency>
  228. <groupId>com.taobao.top</groupId>
  229. <artifactId>top-api-sdk-dev</artifactId>
  230. <version>ding-open-mc-SNAPSHOT</version>
  231. <scope>system</scope>
  232. <systemPath>${pom.basedir}/src/lib/taobao-sdk-java-auto_1479188381469-20210907.jar</systemPath>
  233. </dependency>
  234. <!--支付宝工具包-->
  235. <dependency>
  236. <groupId>com.alipay.sdk</groupId>
  237. <artifactId>alipay-sdk-java</artifactId>
  238. <version>${alipay.sdk.ava.version}</version>
  239. </dependency>
  240. <!--虹软人脸识别sdk-->
  241. <dependency>
  242. <groupId>com.arcsoft.face</groupId>
  243. <artifactId>arcsoft-sdk-face</artifactId>
  244. <version>4.1.1.0</version>
  245. <scope>system</scope>
  246. <systemPath>${pom.basedir}/src/lib/arcsoft-sdk-face-4.1.1.0.jar</systemPath>
  247. </dependency>
  248. <!--websocket-->
  249. <dependency>
  250. <groupId>org.springframework.boot</groupId>
  251. <artifactId>spring-boot-starter-websocket</artifactId>
  252. </dependency>
  253. <!--二维码-->
  254. <dependency>
  255. <groupId>com.google.zxing</groupId>
  256. <artifactId>core</artifactId>
  257. <version>${zxing.version}</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>com.google.zxing</groupId>
  261. <artifactId>javase</artifactId>
  262. <version>${zxing.version}</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.projectlombok</groupId>
  266. <artifactId>lombok</artifactId>
  267. <version>${lombok.version}</version>
  268. </dependency>
  269. </dependencies>
  270. <build>
  271. <finalName>${project.artifactId}</finalName>
  272. <plugins>
  273. <plugin>
  274. <groupId>org.springframework.boot</groupId>
  275. <artifactId>spring-boot-maven-plugin</artifactId>
  276. <configuration>
  277. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  278. </configuration>
  279. </plugin>
  280. <!-- YUI Compressor (CSS/JS压缩)
  281. <plugin>
  282. <groupId>net.alchim31.maven</groupId>
  283. <artifactId>yuicompressor-maven-plugin</artifactId>
  284. <version>1.5.1</version>
  285. <executions>
  286. <execution>
  287. <phase>prepare-package</phase>
  288. <goals>
  289. <goal>compress</goal>
  290. </goals>
  291. </execution>
  292. </executions>
  293. <configuration>
  294. <encoding>UTF-8</encoding>
  295. <jswarn>false</jswarn>
  296. <nosuffix>true</nosuffix>
  297. <linebreakpos>50000</linebreakpos>
  298. <sourceDirectory>src/main/resources/static</sourceDirectory>
  299. <force>true</force>
  300. <includes>
  301. <include>**/*.js</include>
  302. <include>**/*.css</include>
  303. </includes>
  304. <excludes>
  305. <exclude>**/*.min.js</exclude>
  306. <exclude>**/*.min.css</exclude>
  307. <exclude>**/fileinput.js</exclude>
  308. <exclude>**/bootstrap-table/**</exclude>
  309. </excludes>
  310. </configuration>
  311. </plugin> -->
  312. <!--打包的时候包含本地jar-->
  313. <plugin>
  314. <groupId>org.springframework.boot</groupId>
  315. <artifactId>spring-boot-maven-plugin</artifactId>
  316. <configuration>
  317. <includeSystemScope>true</includeSystemScope>
  318. </configuration>
  319. </plugin>
  320. </plugins>
  321. </build>
  322. <repositories>
  323. <repository>
  324. <id>public</id>
  325. <name>aliyun nexus</name>
  326. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  327. <releases>
  328. <enabled>true</enabled>
  329. </releases>
  330. </repository>
  331. </repositories>
  332. <pluginRepositories>
  333. <pluginRepository>
  334. <id>public</id>
  335. <name>aliyun nexus</name>
  336. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  337. <releases>
  338. <enabled>true</enabled>
  339. </releases>
  340. <snapshots>
  341. <enabled>false</enabled>
  342. </snapshots>
  343. </pluginRepository>
  344. </pluginRepositories>
  345. </project>