pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  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>1.0.0</version>
  8. <name>ruoyi</name>
  9. <url>http://www.ruoyi.vip</url>
  10. <description>圣钰baby-SaaS管理系统</description>
  11. <properties>
  12. <ruoyi.version>1.0.0</ruoyi.version>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <java.version>1.8</java.version>
  16. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  17. <shiro.version>1.7.1</shiro.version>
  18. <thymeleaf.extras.shiro.version>2.0.0</thymeleaf.extras.shiro.version>
  19. <druid.version>1.2.4</druid.version>
  20. <bitwalker.version>1.21</bitwalker.version>
  21. <kaptcha.version>2.3.2</kaptcha.version>
  22. <swagger.version>2.9.2</swagger.version>
  23. <swagger1.version>1.5.21</swagger1.version>
  24. <pagehelper.boot.version>1.4.1</pagehelper.boot.version>
  25. <fastjson.version>1.2.75</fastjson.version>
  26. <oshi.version>5.6.0</oshi.version>
  27. <jna.version>5.7.0</jna.version>
  28. <commons.io.version>2.5</commons.io.version>
  29. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  30. <poi.version>4.1.2</poi.version>
  31. <velocity.version>1.7</velocity.version>
  32. </properties>
  33. <!-- 依赖声明 -->
  34. <dependencyManagement>
  35. <dependencies>
  36. <!-- SpringBoot的依赖配置-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-dependencies</artifactId>
  40. <version>2.2.13.RELEASE</version>
  41. <type>pom</type>
  42. <scope>import</scope>
  43. </dependency>
  44. <!--阿里数据库连接池 -->
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>druid-spring-boot-starter</artifactId>
  48. <version>${druid.version}</version>
  49. </dependency>
  50. <!--验证码 -->
  51. <dependency>
  52. <groupId>com.github.penggle</groupId>
  53. <artifactId>kaptcha</artifactId>
  54. <version>${kaptcha.version}</version>
  55. </dependency>
  56. <!--Shiro核心框架 -->
  57. <dependency>
  58. <groupId>org.apache.shiro</groupId>
  59. <artifactId>shiro-core</artifactId>
  60. <version>${shiro.version}</version>
  61. </dependency>
  62. <!-- Shiro使用Spring框架 -->
  63. <dependency>
  64. <groupId>org.apache.shiro</groupId>
  65. <artifactId>shiro-spring</artifactId>
  66. <version>${shiro.version}</version>
  67. </dependency>
  68. <!-- Shiro使用EhCache缓存框架 -->
  69. <dependency>
  70. <groupId>org.apache.shiro</groupId>
  71. <artifactId>shiro-ehcache</artifactId>
  72. <version>${shiro.version}</version>
  73. </dependency>
  74. <!-- thymeleaf模板引擎和shiro框架的整合 -->
  75. <dependency>
  76. <groupId>com.github.theborakompanioni</groupId>
  77. <artifactId>thymeleaf-extras-shiro</artifactId>
  78. <version>${thymeleaf.extras.shiro.version}</version>
  79. </dependency>
  80. <!-- 解析客户端操作系统、浏览器等 -->
  81. <dependency>
  82. <groupId>eu.bitwalker</groupId>
  83. <artifactId>UserAgentUtils</artifactId>
  84. <version>${bitwalker.version}</version>
  85. </dependency>
  86. <!-- pagehelper 分页插件 -->
  87. <dependency>
  88. <groupId>com.github.pagehelper</groupId>
  89. <artifactId>pagehelper-spring-boot-starter</artifactId>
  90. <version>${pagehelper.boot.version}</version>
  91. </dependency>
  92. <!-- 获取系统信息 -->
  93. <dependency>
  94. <groupId>com.github.oshi</groupId>
  95. <artifactId>oshi-core</artifactId>
  96. <version>${oshi.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>net.java.dev.jna</groupId>
  100. <artifactId>jna</artifactId>
  101. <version>${jna.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>net.java.dev.jna</groupId>
  105. <artifactId>jna-platform</artifactId>
  106. <version>${jna.version}</version>
  107. </dependency>
  108. <!-- swagger2-->
  109. <dependency>
  110. <groupId>io.springfox</groupId>
  111. <artifactId>springfox-swagger2</artifactId>
  112. <version>${swagger.version}</version>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>io.swagger</groupId>
  116. <artifactId>swagger-annotations</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>io.swagger</groupId>
  120. <artifactId>swagger-models</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>org.apache.logging.log4j</groupId>
  124. <artifactId>log4j</artifactId>
  125. </exclusion>
  126. </exclusions>
  127. </dependency>
  128. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  129. <dependency>
  130. <groupId>io.swagger</groupId>
  131. <artifactId>swagger-annotations</artifactId>
  132. <version>${swagger1.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>io.swagger</groupId>
  136. <artifactId>swagger-models</artifactId>
  137. <version>${swagger1.version}</version>
  138. </dependency>
  139. <!--io常用工具类 -->
  140. <dependency>
  141. <groupId>commons-io</groupId>
  142. <artifactId>commons-io</artifactId>
  143. <version>${commons.io.version}</version>
  144. </dependency>
  145. <!--文件上传工具类 -->
  146. <dependency>
  147. <groupId>commons-fileupload</groupId>
  148. <artifactId>commons-fileupload</artifactId>
  149. <version>${commons.fileupload.version}</version>
  150. </dependency>
  151. <!-- excel工具 -->
  152. <dependency>
  153. <groupId>org.apache.poi</groupId>
  154. <artifactId>poi-ooxml</artifactId>
  155. <version>${poi.version}</version>
  156. </dependency>
  157. <!--velocity代码生成使用模板 -->
  158. <dependency>
  159. <groupId>org.apache.velocity</groupId>
  160. <artifactId>velocity</artifactId>
  161. <version>${velocity.version}</version>
  162. <exclusions>
  163. <exclusion>
  164. <groupId>commons-collections</groupId>
  165. <artifactId>commons-collections</artifactId>
  166. </exclusion>
  167. </exclusions>
  168. </dependency>
  169. <!-- 阿里JSON解析器 -->
  170. <dependency>
  171. <groupId>com.alibaba</groupId>
  172. <artifactId>fastjson</artifactId>
  173. <version>${fastjson.version}</version>
  174. </dependency>
  175. <!-- 定时任务-->
  176. <dependency>
  177. <groupId>com.ruoyi</groupId>
  178. <artifactId>ruoyi-quartz</artifactId>
  179. <version>${ruoyi.version}</version>
  180. </dependency>
  181. <!-- 代码生成-->
  182. <dependency>
  183. <groupId>com.ruoyi</groupId>
  184. <artifactId>ruoyi-generator</artifactId>
  185. <version>${ruoyi.version}</version>
  186. </dependency>
  187. <!-- 核心模块-->
  188. <dependency>
  189. <groupId>com.ruoyi</groupId>
  190. <artifactId>ruoyi-framework</artifactId>
  191. <version>${ruoyi.version}</version>
  192. </dependency>
  193. <!-- 系统模块-->
  194. <dependency>
  195. <groupId>com.ruoyi</groupId>
  196. <artifactId>ruoyi-system</artifactId>
  197. <version>${ruoyi.version}</version>
  198. </dependency>
  199. <!-- 通用工具-->
  200. <dependency>
  201. <groupId>com.ruoyi</groupId>
  202. <artifactId>ruoyi-common</artifactId>
  203. <version>${ruoyi.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.ruoyi</groupId>
  207. <artifactId>ruoyi-project</artifactId>
  208. <version>${ruoyi.version}</version>
  209. </dependency>
  210. <!-- 引入mybatis-plus操作数据库 -->
  211. <dependency>
  212. <groupId>com.baomidou</groupId>
  213. <artifactId>mybatis-plus-boot-starter</artifactId>
  214. <version>3.4.2</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.github.dozermapper</groupId>
  218. <artifactId>dozer-spring-boot-starter</artifactId>
  219. <version>6.5.2</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>cn.hutool</groupId>
  223. <artifactId>hutool-all</artifactId>
  224. <version>5.7.7</version>
  225. </dependency>
  226. </dependencies>
  227. </dependencyManagement>
  228. <modules>
  229. <module>ruoyi-admin</module>
  230. <module>ruoyi-framework</module>
  231. <module>ruoyi-system</module>
  232. <module>ruoyi-quartz</module>
  233. <module>ruoyi-generator</module>
  234. <module>ruoyi-common</module>
  235. <module>ruoyi-project</module>
  236. </modules>
  237. <packaging>pom</packaging>
  238. <dependencies>
  239. <!-- 引入mybatis-plus操作数据库 -->
  240. <dependency>
  241. <groupId>com.baomidou</groupId>
  242. <artifactId>mybatis-plus-boot-starter</artifactId>
  243. <version>3.4.3.4</version>
  244. </dependency>
  245. <!--引入lombok简单代码-->
  246. <dependency>
  247. <groupId>org.projectlombok</groupId>
  248. <artifactId>lombok</artifactId>
  249. <version>1.18.22</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>com.github.dozermapper</groupId>
  253. <artifactId>dozer-spring-boot-starter</artifactId>
  254. <exclusions>
  255. <exclusion>
  256. <groupId>org.apache.logging.log4j</groupId>
  257. <artifactId>log4j-api</artifactId>
  258. </exclusion>
  259. <exclusion>
  260. <groupId>org.apache.logging.log4j</groupId>
  261. <artifactId>log4j-to-slf4j</artifactId>
  262. </exclusion>
  263. </exclusions>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.logging.log4j</groupId>
  267. <artifactId>log4j-to-slf4j</artifactId>
  268. <version>2.17.0</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>cn.hutool</groupId>
  272. <artifactId>hutool-all</artifactId>
  273. <version>5.7.17</version>
  274. </dependency>
  275. </dependencies>
  276. <build>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-compiler-plugin</artifactId>
  281. <version>3.1</version>
  282. <configuration>
  283. <source>${java.version}</source>
  284. <target>${java.version}</target>
  285. <encoding>${project.build.sourceEncoding}</encoding>
  286. </configuration>
  287. </plugin>
  288. </plugins>
  289. <!-- 重新指明资源文件位置 -->
  290. <resources>
  291. <resource>
  292. <directory>src/main/java</directory>
  293. <includes>
  294. <include>**/*.xml</include>
  295. </includes>
  296. </resource>
  297. <resource>
  298. <directory>src/main/resources</directory>
  299. <filtering>true</filtering>
  300. <!--打包时先排除掉三个文件夹-->
  301. <excludes>
  302. <exclude>application-dev.yml</exclude>
  303. <exclude>application-test.yml</exclude>
  304. <exclude>application-prod.yml</exclude>
  305. <exclude>static/**</exclude>
  306. </excludes>
  307. </resource>
  308. <resource>
  309. <directory>src/main/resources</directory>
  310. <filtering>true</filtering>
  311. <includes>
  312. <include>application.yml</include>
  313. <include>application-${profiles.active}.yml</include>
  314. </includes>
  315. </resource>
  316. <resource>
  317. <directory>src/main/resources</directory>
  318. <filtering>false</filtering>
  319. <includes>
  320. <include>static/**</include>
  321. </includes>
  322. </resource>
  323. </resources>
  324. </build>
  325. <profiles>
  326. <profile>
  327. <id>dev</id>
  328. <properties>
  329. <!-- 环境标识,需要与配置文件的名称相对应 -->
  330. <profiles.active>dev</profiles.active>
  331. </properties>
  332. <activation>
  333. <!-- 默认环境 -->
  334. <activeByDefault>true</activeByDefault>
  335. </activation>
  336. </profile>
  337. <profile>
  338. <id>test</id>
  339. <properties>
  340. <profiles.active>test</profiles.active>
  341. </properties>
  342. </profile>
  343. <profile>
  344. <id>prod</id>
  345. <properties>
  346. <profiles.active>prod</profiles.active>
  347. </properties>
  348. </profile>
  349. </profiles>
  350. <repositories>
  351. <repository>
  352. <id>public</id>
  353. <name>aliyun nexus</name>
  354. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  355. <releases>
  356. <enabled>true</enabled>
  357. </releases>
  358. </repository>
  359. </repositories>
  360. <pluginRepositories>
  361. <pluginRepository>
  362. <id>public</id>
  363. <name>aliyun nexus</name>
  364. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  365. <releases>
  366. <enabled>true</enabled>
  367. </releases>
  368. <snapshots>
  369. <enabled>false</enabled>
  370. </snapshots>
  371. </pluginRepository>
  372. </pluginRepositories>
  373. </project>