pom.xml 11 KB

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