pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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.ruoyi</groupId>
  6. <artifactId>ruoyi</artifactId>
  7. <version>4.6.2</version>
  8. <packaging>jar</packaging>
  9. <name>ruoyi</name>
  10. <url>http://www.caproject.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. </properties>
  39. <dependencies>
  40. <!-- SpringBoot 核心包 -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter</artifactId>
  44. </dependency>
  45. <!-- SpringBoot 测试 -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-test</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <!-- SpringBoot 拦截器 -->
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-aop</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.dom4j</groupId>
  58. <artifactId>dom4j</artifactId>
  59. <version>2.0.0</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-api</artifactId>
  64. <version>1.7.21</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.slf4j</groupId>
  68. <artifactId>slf4j-log4j12</artifactId>
  69. <version>1.7.21</version>
  70. </dependency>
  71. <!-- SpringBoot Web容器 -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-web</artifactId>
  75. </dependency>
  76. <!-- SpringBoot集成thymeleaf模板 -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  80. </dependency>
  81. <!-- spring-boot-devtools -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-devtools</artifactId>
  85. <optional>true</optional> <!-- 表示依赖不会传递 -->
  86. </dependency>
  87. <!-- Mysql驱动包 -->
  88. <dependency>
  89. <groupId>mysql</groupId>
  90. <artifactId>mysql-connector-java</artifactId>
  91. </dependency>
  92. <!-- Dynamic DataSource -->
  93. <dependency>
  94. <groupId>com.baomidou</groupId>
  95. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  96. <version>3.5.1</version>
  97. </dependency>
  98. <!-- SpringBoot集成mybatis框架 -->
  99. <dependency>
  100. <groupId>org.mybatis.spring.boot</groupId>
  101. <artifactId>mybatis-spring-boot-starter</artifactId>
  102. <version>${mybatis.spring.boot.starter.version}</version>
  103. </dependency>
  104. <!-- pagehelper 分页插件 -->
  105. <dependency>
  106. <groupId>com.github.pagehelper</groupId>
  107. <artifactId>pagehelper-spring-boot-starter</artifactId>
  108. <version>${pagehelper.spring.boot.starter.version}</version>
  109. </dependency>
  110. <!-- 阿里数据库连接池 -->
  111. <dependency>
  112. <groupId>com.alibaba</groupId>
  113. <artifactId>druid-spring-boot-starter</artifactId>
  114. <version>${druid.version}</version>
  115. </dependency>
  116. <!-- 常用工具类 -->
  117. <dependency>
  118. <groupId>org.apache.commons</groupId>
  119. <artifactId>commons-lang3</artifactId>
  120. </dependency>
  121. <!-- io常用工具类 -->
  122. <dependency>
  123. <groupId>commons-io</groupId>
  124. <artifactId>commons-io</artifactId>
  125. <version>${commons.io.version}</version>
  126. </dependency>
  127. <!-- 文件上传工具类 -->
  128. <dependency>
  129. <groupId>commons-fileupload</groupId>
  130. <artifactId>commons-fileupload</artifactId>
  131. <version>${commons.fileupload.version}</version>
  132. </dependency>
  133. <!-- Shiro核心框架 -->
  134. <dependency>
  135. <groupId>org.apache.shiro</groupId>
  136. <artifactId>shiro-core</artifactId>
  137. <version>${shiro.version}</version>
  138. </dependency>
  139. <!-- Shiro使用Spring框架 -->
  140. <dependency>
  141. <groupId>org.apache.shiro</groupId>
  142. <artifactId>shiro-spring</artifactId>
  143. <version>${shiro.version}</version>
  144. </dependency>
  145. <!-- Shiro使用EhCache缓存框架 -->
  146. <dependency>
  147. <groupId>org.apache.shiro</groupId>
  148. <artifactId>shiro-ehcache</artifactId>
  149. <version>${shiro.version}</version>
  150. </dependency>
  151. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  152. <dependency>
  153. <groupId>com.github.theborakompanioni</groupId>
  154. <artifactId>thymeleaf-extras-shiro</artifactId>
  155. <version>${thymeleaf.extras.shiro.version}</version>
  156. </dependency>
  157. <!-- 阿里JSON解析器 -->
  158. <dependency>
  159. <groupId>com.alibaba</groupId>
  160. <artifactId>fastjson</artifactId>
  161. <version>${fastjson.version}</version>
  162. </dependency>
  163. <!-- 解析客户端操作系统、浏览器等 -->
  164. <dependency>
  165. <groupId>eu.bitwalker</groupId>
  166. <artifactId>UserAgentUtils</artifactId>
  167. <version>${bitwalker.version}</version>
  168. </dependency>
  169. <!-- Spring框架基本的核心工具 -->
  170. <dependency>
  171. <groupId>org.springframework</groupId>
  172. <artifactId>spring-context-support</artifactId>
  173. </dependency>
  174. <!-- 定时任务 -->
  175. <dependency>
  176. <groupId>org.quartz-scheduler</groupId>
  177. <artifactId>quartz</artifactId>
  178. <exclusions>
  179. <exclusion>
  180. <groupId>com.mchange</groupId>
  181. <artifactId>c3p0</artifactId>
  182. </exclusion>
  183. </exclusions>
  184. </dependency>
  185. <!-- velocity代码生成使用模板 -->
  186. <dependency>
  187. <groupId>org.apache.velocity</groupId>
  188. <artifactId>velocity</artifactId>
  189. <version>${velocity.version}</version>
  190. <exclusions>
  191. <exclusion>
  192. <groupId>commons-collections</groupId>
  193. <artifactId>commons-collections</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <!-- 验证码 -->
  198. <dependency>
  199. <groupId>com.github.penggle</groupId>
  200. <artifactId>kaptcha</artifactId>
  201. <version>${kaptcha.version}</version>
  202. <exclusions>
  203. <exclusion>
  204. <artifactId>javax.servlet-api</artifactId>
  205. <groupId>javax.servlet</groupId>
  206. </exclusion>
  207. </exclusions>
  208. </dependency>
  209. <!-- Swagger3依赖 -->
  210. <dependency>
  211. <groupId>io.springfox</groupId>
  212. <artifactId>springfox-boot-starter</artifactId>
  213. <version>${swagger.version}</version>
  214. <exclusions>
  215. <exclusion>
  216. <groupId>io.swagger</groupId>
  217. <artifactId>swagger-models</artifactId>
  218. </exclusion>
  219. </exclusions>
  220. </dependency>
  221. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  222. <dependency>
  223. <groupId>io.swagger</groupId>
  224. <artifactId>swagger-models</artifactId>
  225. <version>1.6.2</version>
  226. </dependency>
  227. <!-- 获取系统信息 -->
  228. <dependency>
  229. <groupId>com.github.oshi</groupId>
  230. <artifactId>oshi-core</artifactId>
  231. <version>${oshi.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>dingding</groupId>
  235. <artifactId>dingding</artifactId>
  236. <version>2.8</version>
  237. <scope>system</scope>
  238. <systemPath>${project.basedir}/lib/json.jar</systemPath>
  239. </dependency>
  240. <!-- excel工具 -->
  241. <dependency>
  242. <groupId>org.apache.poi</groupId>
  243. <artifactId>poi-ooxml</artifactId>
  244. <version>${poi.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.springframework.boot</groupId>
  248. <artifactId>spring-boot-devtools</artifactId>
  249. <optional>true</optional>
  250. </dependency>
  251. </dependencies>
  252. <build>
  253. <resources>
  254. <resource>
  255. <directory>lib</directory>
  256. <targetPath>/BOOT-INF/lib/</targetPath>
  257. <includes>
  258. <include>**/*.jar</include>
  259. </includes>
  260. </resource>
  261. <resource>
  262. <directory>src/main/java</directory> <!-- .xml资源所在目录 -->
  263. <includes> <!-- 包括目录下的 .xml 文件-->
  264. <include>**/*.xml</include>
  265. </includes>
  266. <filtering>false</filtering> <!-- 暂时不需要管,加上就是了 -->
  267. </resource>
  268. </resources>
  269. <finalName>${project.artifactId}</finalName>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.springframework.boot</groupId>
  273. <artifactId>spring-boot-maven-plugin</artifactId>
  274. <configuration>
  275. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  276. </configuration>
  277. </plugin>
  278. <!-- YUI Compressor (CSS/JS压缩)
  279. <plugin>
  280. <groupId>net.alchim31.maven</groupId>
  281. <artifactId>yuicompressor-maven-plugin</artifactId>
  282. <version>1.5.1</version>
  283. <executions>
  284. <execution>
  285. <phase>prepare-package</phase>
  286. <goals>
  287. <goal>compress</goal>
  288. </goals>
  289. </execution>
  290. </executions>
  291. <configuration>
  292. <encoding>UTF-8</encoding>
  293. <jswarn>false</jswarn>
  294. <nosuffix>true</nosuffix>
  295. <linebreakpos>50000</linebreakpos>
  296. <sourceDirectory>src/main/resources/static</sourceDirectory>
  297. <force>true</force>
  298. <includes>
  299. <include>**/*.js</include>
  300. <include>**/*.css</include>
  301. </includes>
  302. <excludes>
  303. <exclude>**/*.min.js</exclude>
  304. <exclude>**/*.min.css</exclude>
  305. <exclude>**/fileinput.js</exclude>
  306. <exclude>**/bootstrap-table/**</exclude>
  307. </excludes>
  308. </configuration>
  309. </plugin> -->
  310. </plugins>
  311. </build>
  312. <repositories>
  313. <repository>
  314. <id>public</id>
  315. <name>aliyun nexus</name>
  316. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  317. <releases>
  318. <enabled>true</enabled>
  319. </releases>
  320. </repository>
  321. </repositories>
  322. <pluginRepositories>
  323. <pluginRepository>
  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. <snapshots>
  331. <enabled>false</enabled>
  332. </snapshots>
  333. </pluginRepository>
  334. </pluginRepositories>
  335. </project>